• Resolved rgreenstreet

    (@rgreenstreet)


    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 rgreenstreet. Reason: Adding more detail
    • This topic was modified 5 years, 4 months ago by rgreenstreet.
    • This topic was modified 5 years, 4 months ago by rgreenstreet.
    • This topic was modified 5 years, 4 months ago by rgreenstreet.
    • This topic was modified 5 years, 4 months ago by rgreenstreet.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rgreenstreet

    (@rgreenstreet)

    Additional information:

    It’s the group tag as well as the content that is showing in the email, not just the content

    So we’re getting the full [group1] this is the content [/group1]

    Rather than just “This is the content”

    Thread Starter rgreenstreet

    (@rgreenstreet)

    Update:

    Tentative fix:

    On a whim I decided to go over to the page that the CF7 form is on and re-save it (even though all changes were made on the form, not the page), and it seems to be working now.

    Dunno if this is a permanent fix and I just have to do this step moving forward, or if there’s something I can change to not have to perform this step.

    Any insight, Jules?

    Plugin Author Jules Colle

    (@jules-colle)

    My 2 cents: you have 75+ rules. This is actually more than I would recommend.
    You might have to up your max_input_vars value in php.ini

    If you are adding a lot of conditions, a lot of fields get POSTed when you click save in the admin backend. At some point I might change this by only submitting the export field, but for now having a lot of fields posted can cause some fields to not be processes. So increasing the max_input_vars is probably your best guess.

    See: https://stackoverflow.com/questions/32531838/form-not-submitting-with-large-amounts-of-data

    Thread Starter rgreenstreet

    (@rgreenstreet)

    Thanks for your input! I’ll try that and mark this as resolved for the time being.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conditional groups showing in email even when condition is not met’ is closed to new replies.