There have been a lot of discussions regarding validation scripts, but I can't find any that really fit my needs.
I have a long form with MANY required fields (mainly check boxes). I need a button to validate that all required fields are marked before someone digitally signs the form. I can gray-out, or disable, the signature fields when the user types in the first field. (Thank you Thom for that script! - http://www.acrobatusers.com/tutorials/2007/09/js_disabling_fields) I need a button that would validate all the required fields then enable the signature fields once the validation script passed.
I have found many scripts that will validate fields if emailing or submitting forms, but I need to validate the fields before they are locked-down with a signature.
I am using Windows and Acrobat Professional 8.0
Any help would be greatly appreciated!
One way to do this is to add a Read Only text field next to the Signature field. Then Add a calculation script similar to this:
Of course there are many variations on this kind of validation.
I've got all kinds of examples at www.pdfscripting.com
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script