Title: Two conditional fields messing
Last modified: February 16, 2021

---

# Two conditional fields messing

 *  Resolved [ssabaripriyatharshini](https://wordpress.org/support/users/ssabaripriyatharshini/)
 * (@ssabaripriyatharshini)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/)
 * When i tried to give two conditional fields when we select one conditional field(“
   Google”) its showing both hidden field and whe i select other (“Other”) option
   nothing happens please help me
 * Link [http://swd-staging.tk/contact-new/](http://swd-staging.tk/contact-new/)(
   Request a quote button in header)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftwo-conditional-fields-messing%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14055841)
 * seems to work. Did you fix it?
 * If not, please try and reproduce your problem in the form tester [https://conditional-fields-cf7.bdwm.be/form-tester/](https://conditional-fields-cf7.bdwm.be/form-tester/)
 *  Thread Starter [ssabaripriyatharshini](https://wordpress.org/support/users/ssabaripriyatharshini/)
 * (@ssabaripriyatharshini)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14055971)
 * Hi,
    Thank you for your immediate response, It isn’t fixed but its working fine
   in form tester. Please help me.
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14056004)
 * please record a video that illustrates your problem. when i test your form it
   seems to work fine
 *  Thread Starter [ssabaripriyatharshini](https://wordpress.org/support/users/ssabaripriyatharshini/)
 * (@ssabaripriyatharshini)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14056031)
 * [Google drive link](https://drive.google.com/file/d/1kJxxAPHEsy44zFzs6ZMmfLzvA9xKaX93/view?usp=sharing)
   
   Please request to view I’ll accept
 *  Thread Starter [ssabaripriyatharshini](https://wordpress.org/support/users/ssabaripriyatharshini/)
 * (@ssabaripriyatharshini)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14056065)
 * Also i tried to use the plugin for another form, I used the single conditional
   field, It’s not working there also. Please help me
    [http://swd-staging.tk/landing/contact/](http://swd-staging.tk/landing/contact/)
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14056107)
 * I checked. Your examples are very inconsistent.
 * 1. First time I tried on mobile it all worked fine.
    2. Then I watched your video
   where 2 fields appear as you describe. 3. Now I test again on desktop and nothing
   appears..
 * As I am currently unable to reproduce scenario 1 or 2 so let’s look at the cause
   of scenario 3.
 * Your fields are not loading because the conditional fields scripts aren’t loaded.
   This is often due to your theme not including `wp_footer()` ([https://conditional-fields-cf7.bdwm.be/docs/troubleshooting/rule-3-your-theme-needs-to-call-wp_footer/](https://conditional-fields-cf7.bdwm.be/docs/troubleshooting/rule-3-your-theme-needs-to-call-wp_footer/))
 * If that doesn’t solve it, try to disable any caching plugins you might have running.
 *  Thread Starter [ssabaripriyatharshini](https://wordpress.org/support/users/ssabaripriyatharshini/)
 * (@ssabaripriyatharshini)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14056155)
 * Hi,
    WP_footer() function is working fine for [http://swd-staging.tk/landing/contact/](http://swd-staging.tk/landing/contact/)
   But in [http://swd-staging.tk/?jhvhgchjgcjghcgjcjgfcgjfc](http://swd-staging.tk/?jhvhgchjgcjghcgjcjgfcgjfc)
   i use two conditional fields will that affect, Still both condition working fine
   in form tester.
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14056171)
 * I noticed your form with id contact_us_contact_page is a custom form. This might
   be interfering. Since you have quite a unique setup it’s going to take a long
   time to debug this. As you stated, the forms are working fine in the form tester.
 * I would suggest you to remove all the the other forms from your page and test
   only the problematic form. There’s most likely some duplicate names or id’s used
   in multiple forms that might be interfering with each other.
 * If the problem persists with only the one form on the page, you might want to
   check this guide: [https://conditional-fields-cf7.bdwm.be/docs/troubleshooting/does-not-work-with-a-third-party-theme-or-plugin/](https://conditional-fields-cf7.bdwm.be/docs/troubleshooting/does-not-work-with-a-third-party-theme-or-plugin/)
 * If still no luck there, I would highly recommend you to have a developer look
   into it. A great platform to hire developers is codeable.io
 * Good luck!
 *  Thread Starter [ssabaripriyatharshini](https://wordpress.org/support/users/ssabaripriyatharshini/)
 * (@ssabaripriyatharshini)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14056198)
 * Thanks a lot for your time and response. It really worth, I’ll try your suggestion
   and get back to you.
 *  Thread Starter [ssabaripriyatharshini](https://wordpress.org/support/users/ssabaripriyatharshini/)
 * (@ssabaripriyatharshini)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14056415)
 * Hi,
    I tried a jQuery script and it’s working fine. <script> jQuery(“#select”).
   change(function () { var selected_option = jQuery(‘#select’).val(); if (selected_option
   === ‘Google’) { jQuery(‘[data-id=”group-456″]’).css(“display”, “block”); } else
   if (selected_option === ‘Other’) { jQuery(‘[data-id=”group-382″]’).css(“display”,“
   block”); } else{ jQuery(‘[data-class=”wpcf7cf_group”]’).css(“display”, “none”);}})
   </script> It’ll be a temporary patch.
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14062893)
 * Haha, yes that will work, but I don’t think you need the conditional fields plugin
   anymore now. You have coded your own conditional logic with plain JavaScript.
 * If you keep the solution, I would recommend you to actually uninstall the conditional
   fields plugin, as it might interfere with your code in unexpected ways.
    -  This reply was modified 5 years, 3 months ago by [Jules Colle](https://wordpress.org/support/users/jules-colle/).
 *  Thread Starter [ssabaripriyatharshini](https://wordpress.org/support/users/ssabaripriyatharshini/)
 * (@ssabaripriyatharshini)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14063115)
 * Ya I accept that as I told that this is a temporary patch, I’m still keep working
   with the suggestions you mentioned, This is an awesome plugin which working fine
   in the other site, I’ll fix the issue and let you know.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Two conditional fields messing’ is closed to new replies.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [ssabaripriyatharshini](https://wordpress.org/support/users/ssabaripriyatharshini/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/two-conditional-fields-messing/#post-14063115)
 * Status: resolved