The date picker/field on one specific form returns an error every time but works on all other forms. Even when I manually try to enter it using the correct formatting, it still returns an error. Below is the code attached to the field. The first piece of code is attached to the exit event and contains the error message returned while the second piece of code is attached to the change event. Is this caused by a bug with my version of Adobe or is my code causing this issue? I know there were issues with the date picker in previous versions of Adobe. Please let me know if you need any other information.
Exit Event:
if((!this.isNull) && (!this.execValidate()))
{
xfa.host.messageBox("You have entered an invalid date. Please select a date from the date picker.");
this.rawValue = null;
})
Change Event:
if (xfa.event.newText.match(/[^0-9/]/))
{
xfa.event.change = "";
}