These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Need capability of multiple checkbox/radio button selections as a required field

trumpie
Registered: Oct 2 2010
Posts: 1

We are requesting that forms be completed where there are 3 boxes presented to be checked. Some respondents will only need to check one while others may need to check two or all three.
 
We need to have at least one marked so we want to have the checkboxes/radio buttons be required fields. Our results thus far show the person filling out the form will skip the boxes entirely if not required fields.
 
When using checkboxes we cannot make them all required because some will only need to mark one.
 
When using radio buttons we can make them required fields but only one can be marked.
 
Please advise if you know of a solution to this.
 
Thank you!
   

Trumpie

My Product Information:
Acrobat Pro 9.0, Windows
George_Johnson
Online
Expert
Registered: Jul 6 2008
Posts: 1875
I never rely on using the required property of fields and instead create a custom JavaScript routine to check the various fields before a submit can take place. You then have much more flexibility, particularly with the feedback you give to the user. The pop-up message can be much more helpful and tailored to the situation. I would suggest this approach in your case.

Your code would have to scan through the relevant fields and check them for completeness, and proceed with a submitForm if everything checks out. If there are problems, alert the user (app.alert) and do not proceed with the submission.