Conditional groups showing in email even when condition is not met
-
Back again with this same issue :-/
It seems like every time I add a new conditional field to the email, it shows in the email that’s sent even if conditions aren’t met e.g.:
[group group1] [/group]
In the email: [group1] this is the content [/group1]
Show group 1 if thisitem equals “Yes”
And even if “thisitem” is “No”, it still shows the group in the email.
On a lot of the groups, I’m using a checkbox with a “Pipe” separator between the visible option and what actually goes into the variable if it’s selected. In the conditional rule, I’m having it look for the visible value before the pipe, which seems to work on most everything else.
E.g. [checkbox thisitem “Yes|You’re right” “No|You’re wrong”]
And the rule is looking for just “Yes” or “No”
And then up until today, somehow, some way, after it showing the groups for like 20 minutes, it up and decides “Ok, I’m gonna do what I’m supposed to” without me having to do anything.
But today it’s still showing the group when it’s not supposed to, even hours later.
Last time I started trying to fix this we thought it might have been the “wp_footer()” and “wp_head()” that were missing causing the issue, but I have since added them, and it’s still doing this.
I can put in the full code of the form, email, and rules, if necessary.
One last note: There are probably 75+ rules, could that be part of the issue, it doesn’t have time to process them all before the email sends?
For the time being, I’ve just commented out the section of the email that has the conditional groups in it, until I figure out what’s going on.
- This topic was modified 5 years, 4 months ago by . Reason: Adding more detail
- This topic was modified 5 years, 4 months ago by .
- This topic was modified 5 years, 4 months ago by .
- This topic was modified 5 years, 4 months ago by .
- This topic was modified 5 years, 4 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Conditional groups showing in email even when condition is not met’ is closed to new replies.