Find and Change a Printed Date Script in an Acrobat PDF Form
Question details
Find where a PDF form generates an outdated printed date and update it.

- Product
- Adobe Acrobat XI Pro
- Device & OS
- not provided
- Scenario
- A user needs to locate the source of a date shown when an Acrobat PDF form is printed.
- Observed behavior
- The printed form displays an outdated date, but the visible scripts do not appear to mention it.
Open the PDF in Acrobat Pro and identify where the outdated date appears on the printed page. Check whether the same date is visible on screen or appears only in print.
Inspect the Date Field and Its JavaScripts
Use this method when the date is displayed in a form field or may be set by a form script.
Acrobat XI uses Forms editing tools; newer Acrobat versions call the equivalent tool Prepare Form. Menu names can differ by version.
In Acrobat XI Pro, open the PDF and choose Tools > Forms > Edit. In newer versions, open Prepare Form instead.
Double-click the field at the date location and check its Properties. Note its field name and examine the Calculate, Format, and Actions tabs for a default value, calculation, or script that sets the date.
In the form editing tools, locate More or Other Tasks > JavaScripts > All JavaScripts. Search the scripts for the field name, date-related code, or references to printing. The menu location may vary by Acrobat version.
Inspect document-level JavaScripts and document actions, including any action that runs before printing. In the page thumbnails panel, open Page Properties for the relevant page and check its Actions tab.
Edit the field value or script that supplies the outdated date, save the PDF, and print a test page. Reopen the form and test again if the date is supposed to update automatically.

Review PDF Documents and Office Files with WPS Office
WPS Office is a free, lightweight alternative for working with PDF and Office files in a familiar interface. It supports common Microsoft Office formats for an easier transition, though it does not replace Acrobat's tools for debugging PDF form JavaScripts.

Frequently Asked Questions
Where can I find all scripts in an Acrobat form?
Open the form editing tools and look under More or Other Tasks > JavaScripts > All JavaScripts. Search for the date field's name and code that runs during printing.
Why does the date change only when I print the form?
A document action or script may set the field before printing. Check document actions and All JavaScripts for print-related code that changes the date field.
What if the date is not in a form field?
The date may be static PDF content rather than a field value. Try selecting it with Acrobat's PDF editing tools and check whether it is part of the page.
Can WPS Office debug Acrobat form JavaScripts?
WPS Office can open PDFs for review, but use Acrobat Pro to inspect and debug Acrobat form scripts and actions.




