Answered
I am trying to write a validation script with a range 2.8 to 3.2 = true anything else would be false. If false in-act my error code list below which goes to a document level script. I need to write this script generically enough so I can switch out the variables for other text fields.
ValidateChecks("PT23a_Failure", event.target, "PT23a_Failure.Commits", ["Assembly", "SAP_Code"]);
Thanks,
Sandy
For AcroForms the entered value is given by "event.value" in the Validate Event. The event object is global so it is not absolutely necessary to pass it into the document level function.
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