Hello,
I am trying to get a checkboxes field being validated only if a specific option is selected inside another checkboxes group.
I tried many ways, but cannot get what I want. Maybe I don't do it the right way.
Here we go:
checkboxes 1 = choose one or several category
checkboxes 2 = choose one or several item inside the category chosen in checkboxes 1
This is the checkboxes_1 output in front:

When clicking an option, it opens a second (possibly a 3rd, 4th...) checkboxes, like this :

What I want, is preventing people not to make a choice inside the second list of options.
At this point, or I get validation while the 2nd list is hidden, or I don't get validation at all...
Let's have a look on backoffice :
Regarding the first checkboxes (category):
The validation tab (woking fine):

and the events (hiding/showing works fine, but not the enable/disable validation):


Let's now have a look at the 2nd checkboxes, the one I don't want to validate if it is hidden and disabled.
First, the validation tab:

And now the Info tab:

On the setup, I put a validate data action, but I think it is only checking for the consent checkbox prior the submit button (which validation works perfectly):

What am I doing wrong?
Even if I don't click the "chauffage" category, so the "solutions de chauffage" checkboxes stay hidden, CF6 validates it... and so it rejects the submit action.
I tried other settings, but then when the 2nd checkboxes are not hidden, and I don't chose nothing, the validation let it pass without saying nothing...
If only someone could tell me how to perform this... I've been trying for hours...
Thank you for your help🙂
Flodariege
I am trying to get a checkboxes field being validated only if a specific option is selected inside another checkboxes group.
I tried many ways, but cannot get what I want. Maybe I don't do it the right way.
Here we go:
checkboxes 1 = choose one or several category
checkboxes 2 = choose one or several item inside the category chosen in checkboxes 1
This is the checkboxes_1 output in front:
When clicking an option, it opens a second (possibly a 3rd, 4th...) checkboxes, like this :
What I want, is preventing people not to make a choice inside the second list of options.
At this point, or I get validation while the 2nd list is hidden, or I don't get validation at all...
Let's have a look on backoffice :
Regarding the first checkboxes (category):
The validation tab (woking fine):
and the events (hiding/showing works fine, but not the enable/disable validation):
Let's now have a look at the 2nd checkboxes, the one I don't want to validate if it is hidden and disabled.
First, the validation tab:
And now the Info tab:
On the setup, I put a validate data action, but I think it is only checking for the consent checkbox prior the submit button (which validation works perfectly):
What am I doing wrong?
Even if I don't click the "chauffage" category, so the "solutions de chauffage" checkboxes stay hidden, CF6 validates it... and so it rejects the submit action.
I tried other settings, but then when the 2nd checkboxes are not hidden, and I don't chose nothing, the validation let it pass without saying nothing...
If only someone could tell me how to perform this... I've been trying for hours...
Thank you for your help🙂
Flodariege