on 12-06-2008 6:32 AM
Hi
i have binded an atrribute of type date to date/time field (DD-MMM-YYYY).if user enters any other formats like 1234,or an invalid date,then he click on submit button, error msg is displaying saying that "Enter the value in the format 1987- 11-25." instead of 25-NOV-1987 .please can u send the date validation code .
Thanks
rahul
Edited by: rahul kumar on Dec 6, 2008 7:33 AM
Edited by: rahul kumar on Dec 6, 2008 7:33 AM
Try this. May be it would help.
You can write formcalc script on DATE field in 'preSubmit' event to validate the specified format and a message to pop up.
FormCalc script -
if (data.subform#.DATE.format != 'specified format')
then
xfa.host.messageBox("Please enter DATE in YYYY-MM-DD format only")
endif
As you have already specified the DATE format in paletts -> objects -> bindings, it will not accept any other format entered. The above script will let a message to pop up displaying the same message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.