Hello,
I have a form (created with Acrobat Pro) which requires users to enter the number of hours worked on a certain project. I want the field to be in HH:MM mode, so I used the Validate - Time format. The problem is that if for example an employee spent 25 hours on a project, the field is not validated since the maximum value possible is 23:59. Is it possible to validate a field with a time but that is not constrained to 24 hours?
Thank You
24 hour time strings are easy to parse and validate, Try this code
I just wrote a whole section on date/time entry and formatting 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]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script