Support » Plugin: Conditional Fields for Contact Form 7 » Two conditional fields messing

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

    (@jules-colle)

    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/

    Thread Starter ssabaripriyatharshini

    (@ssabaripriyatharshini)

    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

    (@jules-colle)

    please record a video that illustrates your problem. when i test your form it seems to work fine

    Thread Starter ssabaripriyatharshini

    (@ssabaripriyatharshini)

    Google drive link
    Please request to view I’ll accept

    Thread Starter ssabaripriyatharshini

    (@ssabaripriyatharshini)

    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/

    Plugin Author Jules Colle

    (@jules-colle)

    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/)

    If that doesn’t solve it, try to disable any caching plugins you might have running.

    Thread Starter ssabaripriyatharshini

    (@ssabaripriyatharshini)

    Hi,
    WP_footer() function is working fine for http://swd-staging.tk/landing/contact/
    But in 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

    (@jules-colle)

    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/

    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

    (@ssabaripriyatharshini)

    Thanks a lot for your time and response. It really worth, I’ll try your suggestion and get back to you.

    Thread Starter ssabaripriyatharshini

    (@ssabaripriyatharshini)

    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

    (@jules-colle)

    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 11 months, 1 week ago by Jules Colle.
    Thread Starter ssabaripriyatharshini

    (@ssabaripriyatharshini)

    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.