Skip to main content
Participant
February 9, 2024
Question

Interactive date box not translating when opened in browser

  • February 9, 2024
  • 1 reply
  • 326 views

I have an interactive form with a date box set to mm/dd/yyyy. In Acrobat if I try to type January 11, 1991 in the field as 01111991, it gives me the error telling me its not formatted correctly. Which is what I need it to do. If the form is opened in a browser, and I repeat the same process, it loads the date as 01/11/2091. It does this because the browser tries to fix the date and places slashes where they would be at the 3rd and 6th digits, creating 01/11/91 and interpreting it as 01/11/2091. 

 

Is there a way I can make it interpret the correct date?

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
February 9, 2024

No, the script that is used to format the date in Acrobat doesn't work in the browser. The browser does it's own thing. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often