What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How can I require someone to complete one of several non-required checkbox fields?Asked by bethinteractive on February 19, 2014 at 06:16 PM
I have four checkbox fields at the top of my form and would like to require that at least one of the checkboxes be complete (and ideally, not more than 4). Is there any way to accomplish this?
checkbox required checkbox checkboxes style size
Please refer on this thread for my colleague's response: http://www.jotform.com/answers/335703
i was able to use that thread to solve my first problem--since the fields were hidden, i could have them all required.
but in this instance, i have 4 different checkbox parts created, all of which are visible. currently, people can select as few or as many of the checkboxes as they want on all 4 parts. i would like to require them to check at least one and not more than four.
is that possible?
Thank you for contacting us.
This is possible. You can require your form submitter to select atleast one checkbox.
1. Click on the field then choose "Show Properties"
2. In your case you can change the Minimum of 1 and Maximum of 4 selection
I just realized that doing this will require you to modify your form script since the steps I provided above will only work for a single checkbox field. You need to download your form source then modify your script to make a condition to accept min and maximum field selection.