Highlighted

High Noon

Avatar

Guest

24-11-2008

I'm working on a validation for the time fields in a PDF form and have run into a small snag. The validation works on all times except 12:00. The user has to enter all four digits of the time for this form to work correctly, but for noon they can enter "12" and the validation doesn't trigger an error. The time is entered in "HHMM" Format with no colon. The display and edit patterns are set with "HH:MM" so it will look correct. But since the raw data is being used in a serial number, I can't have the colon included. I set the value validation pattern to HHMM, but what can I do to catch the "12". This is the last issue I've found on the form that I need to fix before publishing it. The field's name is OccurenceTime.

I don't care if it needs to be done in JavaScript or FormCalc, or if it's something I can set in LiveCycle Designer. If someone could help me I would be very appreciative. Sooner rather than later would be even better.



TIA,

Garrett