This content has been marked as final.
Show 2 replies
-
1. Re: Unique DOB Pattern Not Working
radzmar Apr 5, 2011 5:50 AM (in response to meem23)Hi,
the regular expression seems to be invalid.
The console throws an error with the one you use.
Try this one:
var r = new RegExp(/^\d{1,2}\/[a-zA-Z]{2}\/\d{2}$/);
var result = r.test(this.rawValue);
if (result !== true)
{
xfa.host.messageBox("Please enter a valid Date of Birth: DD/Mo. Code/YY; e.g. 26/JA/67");
xfa.host.setFocus(this);
}
-
2. Re: Unique DOB Pattern Not Working
meem23 Apr 5, 2011 12:16 PM (in response to radzmar)This worked - thanks so much for your help!

