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

PDF Form 2 checkboxes, 1 must be checked

slang75
Registered: Apr 22 2009
Posts: 15

Hello all!

I have a simple PDF form with two checkboxes at the bottom of the form, YES and NO. What I need to do is to have some kind of vaildation to make sure that at least one checkbox is checked YES or NO. Some people are completing the form without telling us YES or NO.

The form is to be printed and then signed. Does anyone know how to help me here?

Thanks

slang75

try67
Expert
Registered: Oct 30 2008
Posts: 2399
First of all, use a radio button instead of check-boxes.
If the form is being printed through a button, you can check that one of the options has been selected before printing it. If not, you can always assign a default value.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

slang75
Registered: Apr 22 2009
Posts: 15
Thanks for the reply, I never thought of radio buttons, but how do I make the form check before printing for those two buttons only?

Thanks,
Slang75
try67
Expert
Registered: Oct 30 2008
Posts: 2399
You need to print the form using a script. Then you'll be able to add a condition that checks if any of the radio buttons has been selected before printing.
You should be aware, however, that the user will always be able to print using Acrobat's built-in print command even without making a selection.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

fredo1985
Registered: Jan 24 2010
Posts: 1
@try67 , thanks i've the same problem and your tips fix it . thanks