on 11-22-2011 8:51 AM
Hi experts,
I am entering a wrong text in my date field,after validating i want clear the date field.How i can code this?
Please help me and guide me.
Regards,
Arun.
Hi Arun,
Write the validation in the exit event of the field like this.
if(this.rawValue == this.formattedValue){
this.rawValue = "";
xfa.host.messageBox("Please enter date in 'MM/DD/YYYY' format.");
}
You need to Edit pattern in the object Paletts as 'MM/DD/YYYY'.
Hopes this will help you.
Regards,
Shaira.
Edited by: Shaira Madhu on Nov 22, 2011 10:05 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.