Adobe Acrobat Date Picker/Field Returns an Error Every Time on One Specific Form But Works on All Other Forms

185 Views Asked by At

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.

Current Version:

2021.007.20102

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 = "";  
}

JavaScript Error Message from Exit Event

0

There are 0 best solutions below