• Resolved antonio1475

    (@antonio1475)


    Hi,

    I realized conditional groups won’t work when they’re inside repeatable field groups (CF7 Repeatable Fields plugin)

    This is already mentioned in their support forum , but I guess the issue lies on Conditional Fields side.

    As the last comment there mentions, Repeatable groups cause SELECT names to end with “__x” (like “__1”, “__2”), so a Select that was named “CarBrand” is then named “CarBrand__1” and __2, and __3 for each repeatable group, so the Contitionals can’t now find the dropdown named “CarBrand”.

    In code:
    <select name="CarBrand" class="wpcf7-form-control wpcf7-select" aria-invalid="false"><option value="seleccionar">seleccionar</option><option value="grupo1">grupo1</option><option value="grupo2">grupo2</option></select>

    is now:

    <select name="CarBrand__1" class="wpcf7-form-control wpcf7-select" aria-invalid="false"><option value="seleccionar">seleccionar</option><option value="grupo1">grupo1</option><option value="grupo2">grupo2</option></select>

    My (raw) guess is that if Conditional Fields conditions were to look at
    <select name="CarBrand*" (* meaning whatever goes after the select name, CarBrand in this example), it would work. Since removing “__1” on the Chrome editor restored Conditional functionality.

    Can this be edited somewhere in the plugin code? I have no knowledge on what to change, unfortunately…

    Thank you very much

    • This topic was modified 7 years, 5 months ago by antonio1475.
    • This topic was modified 7 years, 5 months ago by antonio1475.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    I tried to make my plugin compatible with a repeatable field plugin before (not this one though, as it seems to be a new one), but it turned out to be too complex, and both plugins would become so intertwined that small corrections in the Repeatable field plugin could cause my plugin to break. So unless we would somehow be able to work closely together and merge both plugins, I don’t see compatibility with this plugin happening.

    That being said, I am working on a pro version of conditional fields that will add support for repeatable fields, regular expressions, dynamic fields, relational operators and some other options. I hope to release it somewhere in the beginning of 2019. You can subscribe to the one-time newsletter here if you are interested: https://conditional-fields-cf7.bdwm.be/contact-form-7-conditional-fields-pro/

    • This reply was modified 7 years, 5 months ago by Jules Colle.
    Thread Starter antonio1475

    (@antonio1475)

    Makes sense.
    Looking forward to Pro!

    Thank you, and great plugin! 🙂

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

The topic ‘Not working with Repeatable Fields plugin’ is closed to new replies.