Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Felipe Elia

    (@felipeelia)

    Hi!

    Yes, currently the plugin doesn’t work with conditional fields. We already have an issue at GitHub about that.

    I’ll leave this topic open to see if someone wants to help with that problem. Thanks for reporting!

    Yes, I also encountered this problem today when I was using these two plugins. A solution that I can guess is that this plugin should dynamically add a new class to the conditional field plugin because I think they collide. For example, this is my code now:

    <div class="wpcf7-select-parent"><select name="category" class="wpcf7-form-control wpcf7-select wpcf7-validates-as-required" aria-required="true" aria-invalid="false"><option value="">---</option><option value="adult">Adult</option><option value="Youth 8-15 years">Youth 8-15 years</option></select></div>

    And these are my fields that will be showing (obviously I’ve cut out a lot of details)
    <div id="group-objekt-adult" data-class="wpcf7cf_group" class="wpcf7cf-hidden">

    I guess when you click “Add” to add new fields, those fields will have the same names as the ones above, which will cause them to collide and it doesn’t know which field is which. Would be nice with a patch! 😀

    Edit: Or… I just realized, it might be because the select field get’s populated with a “__x” like “__1”, “__2” and conditional fields don’t know what to do with that.

    • This reply was modified 7 years, 5 months ago by cryx.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Form validation not triggering when using along with ‘conditional field’’ is closed to new replies.