Fix PDF Form JavaScript Date Formatting in Adobe Acrobat Reader
Question details
The user needs a PDF form's JavaScript date or time formatting to work consistently across computers.

- Product
- Adobe Acrobat Reader and Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A user opens a PDF form that uses JavaScript to format date or time fields.
- Observed behavior
- The formatting works on most computers but fails on one device, potentially because it is opened in a browser PDF viewer.
Check which application opens the form on the affected computer and compare it with the application used on a working computer. Make sure the PDF comes from a trusted source before allowing it to run scripts.
Open the PDF form in Adobe Acrobat Reader or Acrobat
Use the desktop Acrobat application when a browser viewer does not run the form's JavaScript consistently.
In the browser PDF viewer, select Download or Save to store the form on the computer.
Launch Adobe Acrobat Reader or Acrobat, select File > Open, and choose the saved PDF. Install Adobe Acrobat Reader first if neither desktop application is available.
Enter a date or time in the affected form field and check whether the expected formatting appears.
Ask a user whose form works to check the application used to open it. Confirm that the affected user is also using the desktop Acrobat application, not a browser tab.

Check Acrobat's JavaScript setting
If the form still fails in the desktop Acrobat application, check whether Acrobat JavaScript is enabled.
Use WPS Office for everyday PDF and document work
WPS Office is a free, lightweight alternative with a familiar interface and support for common Microsoft Office formats, making it easier to move existing files. For this form's Acrobat JavaScript, use Adobe Acrobat Reader or Acrobat; WPS is not a confirmed fix for the script.

Frequently Asked Questions
Why does the PDF form work on one computer but not another?
The computers may be using different PDF viewers. Browser viewers can handle Acrobat JavaScript differently, so compare the apps used and try the desktop Adobe Acrobat Reader or Acrobat application.
How do I open the form outside Microsoft Edge?
Select Download or Save in Edge's PDF viewer, then open Adobe Acrobat Reader or Acrobat and use File > Open to select the saved PDF.
Where can I check whether Acrobat JavaScript is enabled?
In Acrobat Reader or Acrobat, open Edit > Preferences on Windows or Acrobat > Settings on macOS, then select JavaScript. Enable Acrobat JavaScript only when appropriate for trusted files.
Does WPS Office fix Acrobat JavaScript in PDF forms?
WPS Office can be used for everyday PDF viewing, but it is not a confirmed fix for Acrobat-specific form JavaScript. Use Adobe Acrobat Reader or Acrobat to test this form.




