- pvbautistaAsked on May 13, 2012 at 10:18 AM
So you can apply a "required:on" for the checkbox group. the above is only one checkbox group but with different labels per group?
- JotForm SupportabajanAnswered on May 13, 2012 at 11:57 AM
- pvbautistaAnswered on May 13, 2012 at 01:30 PM
Thanks for the reply. What I was trying to do, is to have some sort of data validation, only one of the checkboxes needs to be checked. If I set "required" to on for each of the two checkboxes fields, then at least two of the checkboxes needs to be checked. I think what I'm trying to do right now is impossible. But if it is possible, then that would be great!
- JotForm SupportabajanAnswered on May 13, 2012 at 01:48 PM
If by "...only one of the checkboxes needs to be checked" you mean that only one should be checked (as opposed to at least one must be checked but more than one may be), both fields should be replaced with radio button fields.
Unfortunately, there's no button in the form builder to toggle field types between radio button and check box. So, the two fields would have to be deleted and replaced. That means their IDs will be different to the current fields, necessitating some changes to the form's injected CSS.
- pvbautistaAnswered on May 13, 2012 at 02:15 PM
Thanks for the reply,again! What I meant was at least one of the check boxes needs to be checked. You're right about radio buttons, but I know what they are for and that's not what I need.
"at least one must be checked but more than one may be" <-- this is what I need to do :-)
- pvbautistaAnswered on May 13, 2012 at 02:19 PM
to further clarify, given your nice example form, if I check only option 1 under label 1, I should be ok. If I check only option 1 under label 2, I should be able to submit the form as well. If i don't put a check on any box, that will trigger the validation :-).
- JotForm SupportabajanAnswered on May 13, 2012 at 02:37 PM
I'll try to have a working example for you later today. Of course, in the interim, one of my colleagues may well have a simple solution to this puzzle.