• Resolved thinkwired

    (@thinkwired)


    For some reason conditional fields are not longer being sent in email messages. The fields display perfectly on the front end but, the values are not being sent — it seems as though the “[group-name] … [/group-name]” code is no longer working.

    This plugin has always worked great on the site and no changes have been made to the code. Any ideas what might cause this to suddenly stop working?

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    Are you absolutely sure nothing changed on your end? I cannot reproduce the problem and nobody else reported this issue

    I have the same Problem. Since I updated to the new Version the conditional fields disappeared and are not being sent with the email. I use your Plugin in combination with the Contact Form 7 Multi Step Plugin from NinjaTeam. Can you help me? Do you need some specific information? Thanks in advance!

    I’m having this problem too. Seems to have started after my last update. My contact page no longer loads conditions so they don’t have an opportunity to type their message. Let me know if I can pass along any information to help.

    https://www.theatguide.com/contact/

    • This reply was modified 5 years, 5 months ago by cmejia.
    • This reply was modified 5 years, 5 months ago by cmejia.
    • This reply was modified 5 years, 5 months ago by cmejia.

    I solved my problem. It was a new conflict with the plugin, “Remove Query Strings From Static Resources.” They were playing well before my last update and now they are not.

    Thread Starter thinkwired

    (@thinkwired)

    Are you absolutely sure nothing changed on your end?

    Updates to WordPress have been applied but no changes have been made to the site in a year.

    To be clear, I can still see the conditional fields on the front end, the values are just not being sent in the emails.

    I’m not sure the other users above are having the same exact issue.

    • This reply was modified 5 years, 4 months ago by thinkwired.
    Plugin Author Jules Colle

    (@jules-colle)

    might be a conflict with another plugin? Can you post a list of the plugins you are using, and your theme?

    Could you also try disabling all plugins except CF7 and Conditional Fields, and see if the problem remains?

    Thread Starter thinkwired

    (@thinkwired)

    @jules-colle I use 4 other very basic plugins (seo, security, cache, akismet) — I disabled them all and there was no change. The values are still not emailed along.

    The theme is Enfold. Disabling the theme also makes no difference.

    I am also having this issue. Tried in a blank theme with no other plugins active and still same trouble. The field labels show in the emails, just are not filled out with the information from the form.

    So for example:

    [support-selected]
    Your Name : [your-name]*NOT SHOWING*
    Your Email : [your-email]*NOT SHOWING*
    Your Subject : [your-subject]*NOT SHOWING*
    Your Message : [your-message]*NOT SHOWING*
    [/support-selected]

    Has anyone been able to find a fix, other than plugin conflicts?

    Aha! Fixed it for my issue. I realized my groups shared some of the same field values, which was why they weren’t showing. I gave each of the fields a unique CF7 tag and that fixed the issue.

    So instead of:

    [support-selected]
    Your Name : [your-name]
    Your Email : [your-email]
    [/support-selected]

    [press-selected]
    Your Name : [your-name]
    Your Email : [your-email]
    [/press-selected]

    I edited to:

    [support-selected]
    Your Name : [your-name-a]
    Your Email : [your-email-a]
    [/support-selected]

    [press-selected]
    Your Name : [your-name-b]
    Your Email : [your-email-b]
    [/press-selected]

    And this fixed it. I hope this helps someone as I missed this in the documentation the first time around!

    Plugin Author Jules Colle

    (@jules-colle)

    @thinkwired Could you share your form code, conditions export, and email code?

    Plugin Author Jules Colle

    (@jules-colle)

    @sevizurbuchen if you are still having problems, could you open a new topic for your issue please?

    Thread Starter thinkwired

    (@thinkwired)

    @jules-colle

    FORM

    <label>What type of property is this?
    [select res-vs-com “Residential” “Commercial”]</label>

    <label>Name *
    [text* quote-name] </label>

    <label>Email *
    [email* quote-email] </label>
    [group group-2]
    <label>Company *
    [text* company] </label>
    [/group]

    <label>Address
    [text quote-address] </label>

    <label class=”first-form form_element_third”>City
    [text quote-city] </label>

    <label class=”form_element_third”>State
    [text quote-state] </label>

    <label class=”form_element_third”>Zip
    [text quote-zip] </label>

    <label>Phone *
    [tel* quote-phone]</label>

    [group group-2]
    <h4>Job Site Info (if different from above)</h4>

    <label>Business Name
    [text company-name] </label>

    <label>Address
    [text company-address] </label>

    <label class=”first-form form_element_third”>City
    [text company-city] </label>

    <label class=”form_element_third”>State
    [text company-state] </label>

    <label class=”form_element_third”>Zip
    [text company-zip] </label>
    [/group]

    <label>How did you hear about us?
    [select quote-referred “Google” “Site Sign” “Craigslist” “Facebook” “Customer Referral” “Business Card” “Valpac Blue Envelope”]</label>

    <label>Need a same day quote?
    [checkbox quote-same-day “Yes (requires image upload)”]
    </label>

    [group group-1]
    <p>Please take 2 to 4 end to end, and side to side pictures of your driveway, and attach them to your request.</p>
    [file quote-image-1 limit:10485760 filetypes:gif|png|jpg|jpeg]
    [file quote-image-2 limit:10485760 filetypes:gif|png|jpg|jpeg]
    [file quote-image-3 limit:10485760 filetypes:gif|png|jpg|jpeg]
    [file quote-image-4 limit:10485760 filetypes:gif|png|jpg|jpeg]
    [/group]

    <label>Message
    [textarea quote-message] </label>

    [submit “Submit Request”]


    CONDITIONS

    show [group-2] if [res-vs-com] equals “Commercial”
    show [group-1] if [quote-same-day] equals “Yes (requires image upload)”

    EMAIL

    Property: [res-vs-com]

    Name: [quote-name]
    Email: [quote-email]

    [group-2]Company: [company][/group-2]
    Address:
    [quote-address]
    [quote-city], [quote-state] [quote-zip]

    [group-2]Job Site Info

    Business Name: [company-name]
    Job Address:
    [company-address]
    [company-city], [company-state] [company-zip][/group-2]
    Phone: [quote-phone]
    Referred by: [quote-referred]

    Message:
    [quote-message]

    Thread Starter thinkwired

    (@thinkwired)

    In doing this I just realized that not all of the fields are being displayed on the front end either. The second condition works fine but the first condition does not display the additional fields.

    This is so strange because it worked for so long prior to this.

    Thread Starter thinkwired

    (@thinkwired)

    The issue seems to be group 2 being used multiple times. If I pull out the first reference of it in the form, the second reference works as expected.

    Prior to some recent update, this form worked perfectly.

    Plugin Author Jules Colle

    (@jules-colle)

    This is very helpful, thanks! I think I might have changed the regex so it catches [group-2]*[/group-2] in a greedy manner now. Will look into it and get it fixed with the next update.

    I’ll close this issue and will follow up here: https://github.com/pwkip/contact-form-7-conditional-fields/issues/33

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Conditional groups not sent in email messages?’ is closed to new replies.