Not working with Repeatable Fields plugin
-
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
The topic ‘Not working with Repeatable Fields plugin’ is closed to new replies.