Answered
Hi,
I am having trouble validating four date fields in an AcroForm. Each date field has a different validation pattern:
(1) DD/MM/YY (eg 03/12/14, but also incorrectly accepts 03DEC14)
(2) MM/YYYY (eg 12/2014, but also incorrectly accepts DEC2014)
(3) DMMMYYYY (eg 3DEC2014, but also incorrectly accepts 3/12/2014)
(4) MMMYYYY (eg DEC2014, but also incorrectly accepts 12/2014)
I need to have the validation consistent with all fields. The difficulty that I am having is if I block the DEC type pattern it will also block the 12/ input (and visa versa).
Is there a Javascript way to explicity set a validation pattern so that the strict pattern will be tested?
Thanks in advance,
Niall
I have sorted this. I set up a second date pattern using 'NNN' for the abbreviated month pattern and then tested if the input matched this as well.
The world is back running on greased grooves...
Niall
Hope this helps,
Niall
Assure Dynamics