I have a Required date field that is scripted to alert user if correct date format isn't used and the focus stays on the field until the correct date format is entered. The user cannot tab out of field or submit form if he has clicked on field and hasn't entered a correct date. However, if the user doesn't click in the field the validations do not work and user is able to Submit form.
How do I script Submit button to check field for data prior to submitting form.
The submit is emailing form as "pdf" to set email address.
You can read more about validation strategies here:
http://www.pdfscripting.com/public/department46.cfm
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