Support » Plugin: Contact Form 7 - Conditional Fields » After update conditional fields and exclusives not working

  • Resolved Jay.Dub

    (@jaydub-1)


    They were working pre-update but now are not. No clear JS errors either πŸ™

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

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

    (@jules-colle)

    Looks like your theme (MSS) has some built-in caching. Try to force clear all your caches and try again.

    I have deactivated all caching and tried with incognito window and forced cleared caches, etc. Still the same.

    Plugin Author Jules Colle

    (@jules-colle)

    can you completely disable the cache in your theme? so then at least I can see which js files are loaded

    yep, I have deactivated hummingbird, that was the only cache

    Could really do with sorting this?

    Plugin Author Jules Colle

    (@jules-colle)

    Check your source code:

    view-source:https://meggittsensing.com/energy/service-and-support/repair/

    There is not a single line here that points to anything in the /plugins/ directory. This is only possible if you have no plugins installed or if you are using some kind of caching. I assumme CF7 and Conditional fields are installed and ACTIVATED, so the only possible problem is that something gets cached, the code below makes me expect as much.

    	<!-- Include all compiled plugins (below), or include individual files as needed --> 
    	<script src="https://meggittsensing.com/wp-content/themes/MSS/js/bootstrap.min.js"></script>
    	<script src="https://meggittsensing.com/wp-content/themes/MSS/js/lightbox_scripts.js"></script>
    	<script src="https://meggittsensing.com/wp-content/themes/MSS/js/lightbox_plugins.js"></script>	
    	<script src="https://meggittsensing.com/wp-content/themes/MSS/js/functions.js"></script>
    

    Have you tried switching themes?

    I haven’t, this was working a few weeks ago and nothing has changed on the site.
    Yes both installed and the form works, it’s just the conditional sections and exclusive checkboxes that aren’t working.

    It’s a live site so switching themes is a bit of a big deal.

    I’ll need to ask the client.

    Thanks for response, will let you know.

    I say nothing’s changed… we updated cf7 and conditional fields…

    Plugin Author Jules Colle

    (@jules-colle)

    I believe you, but i cannot debug anything unless I see this line in the source code:

    <script type='text/javascript' src='/wp-content/plugins/cf7-conditional-fields/js/scripts.js?ver=1.4.1'></script>

    As long as it’s not there injected automatically it means the plugin is not loaded. Something is preventing the file to load, and this something is out of my reach.

    • This reply was modified 2 years, 1 month ago by Jules Colle.
    • This reply was modified 2 years, 1 month ago by Jules Colle.
    • This reply was modified 2 years, 1 month ago by Jules Colle.
    • This reply was modified 2 years, 1 month ago by Jules Colle.

    I’ve put that into the header.php now so it is there.

    Plugin Author Jules Colle

    (@jules-colle)

    You are slowly but surely breaking your website by adding these lines manually, but okay, since you are going there, the line should be at the end of the page right before the closing </body> tag. So remove it from the header and add it to your footer.php file. Ans while you are there, could you make sure wp_footer() is called there as well?

    • This reply was modified 2 years, 1 month ago by Jules Colle.

    I know it’s not ideal, the site is being replaced soon.
    That has fixed the conditional show/hide but not the exclusive on the checkboxes…

    Plugin Author Jules Colle

    (@jules-colle)

    The exclusive checkboxes should be picked up with the CF7 author. This has nothing to do with conditional fields. The reason it’s not working is likely similar. Some js files that should be loaded by CF7 aren’t loaded.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘After update conditional fields and exclusives not working’ is closed to new replies.