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

Problems with date validation pattern DD.MM.YYYY

reftor
Registered: Jan 28 2009
Posts: 4

My form uses an input date field which consistst of DD.MM.YYYY.

Display pattern, edit pattern, validation pattern and date pattern has been set to DD.MM.YYYY.

"Validation Pattern Message"-box has been set to checked.

"Validation Script Message"-box is not checked.

1. When I type: 313101

the system converts the digits to the date 01.01.3131

2. When I type: 3131

the system converts the digits to the date 01.01.3131

3. When I type: 31

I get an error message "Date is not valid."

I need a form to throw an error message if the user doesn`t type the correct input

DD.MM.YYYY. (01.03.2009)

Thanks in advance.

Tor

My Product Information:
LiveCycle Designer, Windows
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
George has a suggestion on how to do this in the post [url=http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=17219]Date Field format[/url].

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You should also set the display pattern. Now the program appears to take UTC dates and fit them to your format. You probably will need to write a validation script to have a tight validation and add the script message. The validation script should return either a true value for passing the validation test and false for failing the validation test.

George Kaiser