Support » Plugin: Contact Form 7 - Conditional Fields » Conditional fields not showing

  • Resolved RagingRaven

    (@ragingraven)


    I have a page where I use conditional fields to show extra fields when selecting a certain selectbox.

    It used to work without issue, but it suddenly stopped working.
    I haven’t checked the page in a while, so I’m not certain from which point on it stopped working (automatic updates are on).

    I’ve checked for javascript errors, but there aren’t any.
    I’ve tested with a new page and new form, but I get the same problem.
    I’ve disabled all plugins except for cf7 and cf7 conditional fields, problem still remains.

    One thing I have noticed though is that the checkbox should be exclusive, but this also doesn’t seem to work anymore.

    I’m not sure what else I can try to fix it.

    The code in the form relating to the issue:
    <label> Hoe wilt u de informatie ontvangen? * </label>
    [checkbox* contact use_label_element exclusive “E-mail” “Per post”]

    [/group]
    [group mailgroup]
    <label> E-mailadres*
    [email* email] </label>
    [/group]
    [group naw]
    <label> Adres*
    [text* adres] </label>
    <label> Postcode*
    [text* postcode] </label>
    <label> Woonplaats*
    [text* plaats] </label>
    [/group]

    The code for conditional fields:
    show [mailgroup] if [contact] equals “E-mail”
    show [naw] if [contact] equals “Per post”

    Edit: I’ve checked all 3 rules mentioned: all field names are unique, there are no js errors and wp_footer is loaded.

    • This topic was modified 1 month, 1 week ago by RagingRaven.
    • This topic was modified 1 month, 1 week ago by RagingRaven.

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

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

    (@jules-colle)

    One thing I have noticed though is that the checkbox should be exclusive, but this also doesn’t seem to work anymore.

    This is interesting. It means that the scripts aren’t loaded in the footer. After inspecting your page source, I noticed that rendering of the page stops all of a sudden. after this line:

    <div class="copyright col-md-6">

    This means that a PHP error occurred at that point. You can check the exact errors in your error logs, or you can even show it on your page by setting WP_DEBUG to true in your wp-config.php file.

    PS: I have a hunch that the problem resides in your theme. You could verify this by disabling ALL plugins (including CF) and then check if the page footer loads properly.

    Thank you for pointing me in the right direction, I’ll check if there are any php errors.

    Just to report back, the issue has been solved.

    The problem was due to an old way of enqueueing scripts and a rewritten footer.php file that wasn’t copied to the footer.php file of the child template yet.

    Thank you for helping me out!

    Plugin Author Jules Colle

    (@jules-colle)

    Good to hear! Thanks for letting me know.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.