These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Date Validation

Niall
Expert
Registered: Apr 26 2006
Posts: 62
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

Hope this helps,

Niall
Assure Dynamics

My Product Information:
Acrobat Pro Extended 9.1, Windows
Niall
Expert
Registered: Apr 26 2006
Posts: 62
Hi again,

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