I've created an online signup form that you can find here: http://www.psvbadmintonbrugge.com/CMS30/index.php/club/lid-worden/online-inschrijven
It is nothing fancy, but there is this option "rode competitie" (near the bottom of the form on the right).
When you select it, you'll see that a(n area with a) checkbox group is displayed.
This group is currently set to "required" (with "minimum choices" set to 1 and "maximum choices" to 3)
So far so good.
Now for the option "rode competitie", I have it set so that upon being checked, it should show the area with the multi select checkbox group and also enable its validation.
When unchecked, I have it set the other way around: it should hide the area with the multi selct checkbox group and disable its activation.
The hiding works just fine, but when the form loads and one fills out all required fields, hitting the submit button seems to do nothing.
However, it doesn't do anything because it is blocked by the multiselect group where the validation fails because there's not (at least) one option selected.
You simple don't see the error notification (at first), because the area the group is on, isn't shown by default.
I thought that maybe by setting the "disabled" option to true on the "validation" tab for my multiselect checkbox group might help me out, but it does't apparently.
This time, clicking the submit button always submits the form, be it without checking the option "rode competitie" or be it with checking the option but without selection (at least) one option.
Any suggestions on how I might get this to work are most welcome :-)
I am having what I think is a similar problem. I have logic set up to show or hide areas based on a selection from the drop down. If 1 is chosen from the dropdown, then area_1 (containing 3 fields) is shown and those 3 fields are required. If 2 is chosen from the drop down, then both area_1 and area_2 (also containing 3 fields) are shown and all fields are required.
The display works ok (except for initial state - areas/fields are showing that I want hidden - I have a separate forum question about that). If I choose 1 from the drop down, and fill out fields 1, 2, and 3 within area 1, I can't submit the form (and get no error message). Only if I go back and choose 2 from the dropdown and fill out all the fields will it allow me to submit.
But if area 2 stays hidden, I don't want those fields within area 2 to be required. Thought I took care of that with my event on the dropdown - hide area_2 and disable validation if 1 is chosen from the dropdown. But somehow the validation rules are still being enforced.
I got this all to work in V5 using containers... if a container that held required fields was hidden, the form would still submit (as long as all required fields that were displayed were filled out).
Wondering if this is a bug or if I've got some settings wrong...
Any chance anyone has some thoughts on this issue?
I understand the problem is that you can not enable a disabled validation of a checkboxes group ? I have just tested this with the latest update and it works fine, a demo form is attached.
@JerseyGirl, I think we have discussed this some where else, the issue is that you should target the fields inside the area in order to disable their validation, you can use #area_id .field input
If your main question got answered then please mark the answer using the button!
Thank you for the feedback. But I guess I still must be doing something wrong.
I have added the concerned form in attachment so that (maybe) you could have a look.
My "problem" is that when I check the checkbox with id "checkbox54", I would like to enable (and vice versa) the validation for the checkboxes group with id "checkboxes62"
The validation for this checkbox group is disabled by default (so that it can be turned on by a field event when necessary)
Before I had in the elements identifier the value "#checkboxes62", but since it's the checkbox group is in an (multifield) area and given your comment above, I changed it to "#area_fields_56.checkboxes62"
However to no avail.
Thank you in advance for your assistance.
hello, Max, could you, please, check, why the forms attached in this post are not downloadable? thanks!
Apologies for the late reply, please note that there is a space in the selector, it should be "#area_fields_56 .checkboxes62", but this selects a group of checkboxes with the class "checkboxes62"
@ElitaKey, there was a problem with the downloads earlier but now its fixed.
I totally missed the fact that you replied so no worries about the late reply :-)
Unfortunately I'm still not getting it it seems.
So what element(s) identifier should I use to enable or disable the validation (when checking/unchecking another checkbox) of the checkboxgroup with id "checkboxes62" residing in the multifield area "area_fields_56"? I'm sure it's pretty simple, but it look like I don't get it at the moment ...
So thank you for your patience in wanting to clarify this for me.
I see that it works in your example, but when I try the value "checkboxes62" it doesn't do anything
Have you had time to address my remark as posted around the end of november?
It seems like I'm still missing something obvious ...
Anyway, enjoy the last day of the year and allready all the best for 2018.
2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com