Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
22

Interactive date box not translating when opened in browser

New Here ,
Feb 09, 2024 Feb 09, 2024

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?

TOPICS
Create PDFs , General troubleshooting , JavaScript , Modern Acrobat , PDF , PDF forms
255
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2024 Feb 09, 2024
LATEST

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines