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

Validation Question...I Think...

markojett
Registered: Dec 21 2009
Posts: 22

Greetings! I run across something I can't figure out. I have a form in which a users checks a box and then in the field next to it enters a date. There are many of these fields on the form. I have a field at the bottom of the form where the user enters their name, but I don't want them to be able to use this field in a case where they've checked a box but didn't enter a date. Any advice? There's a total of about 50 check & date boxes on this form. Thanks!

My Product Information:
Acrobat Pro 8.1, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
There are two options:
- You can use a validation script that rejects the values if a check-box is filled in but there's no date (it can also alert the user to the problem and even move the focus to the empty field). This will be the validation script of the Name field.
- You can make the name field disabled, and only enable it when a date has been filled in. The disadvantage here is that you'll need to add this script to each of the date text fields (and possibly the check-boxes as well).

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

markojett
Registered: Dec 21 2009
Posts: 22
I like the first idea. I think it would be less time consuming. Is there somewhere here I could find that code? I really appreciate your help.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
If you want, send me the file by email (my address is in my signature) and I'll let you know what's the best way to implement it. It mostly depends on how consistently you named your fields.

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

markojett
Registered: Dec 21 2009
Posts: 22
Will do - Thanks!!
markojett
Registered: Dec 21 2009
Posts: 22
Sorry that you were unable to help me - Can anyone else offer a solution?