How to Create an Interactive Date Stamp in Adobe Acrobat
Question details
The user needs to create a dynamic PDF stamp that prompts for a manual date entry via a dialog box, rather than automatically inserting the current system date.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating custom dynamic stamps for documents that require specific filing dates or backdated information, which differ from the actual day the document is stamped.
- Observed behavior
- By default, Acrobat dynamic stamps automatically pull the current system date. The desired goal is to trigger a JavaScript pop-up prompt asking the user for the exact date upon applying the stamp.
Ensure you have Adobe Acrobat Standard or Pro installed, as Acrobat Reader cannot create dynamic stamps. You should also enable JavaScript in Acrobat Preferences and familiarize yourself with the JavaScript Debugger.
Use JavaScript to Prompt for a Custom Date
Add a custom calculation script with the app.response() method to a text field within your dynamic stamp.
To prevent Adobe Acrobat from automatically using the system date, you must replace the default date code with a script that triggers a user dialog box. This script verifies the internal stamp name and then asks the user for the specific date.
It is crucial to find the exact internal name of your custom stamp (which typically looks like a random string of characters) so the script knows when to execute.
Go to Tools > Stamp > Custom Stamps > Create, and select an image or PDF to serve as the background for your new stamp.
Locate and open the newly created stamp file from your system's Acrobat AppData Stamps folder. Go to Tools > Prepare Form and add a Text Field where you want the date to appear.
Right-click the Text Field, select Properties, and go to the Calculate tab. Choose 'Custom calculation script' and click Edit.
Enter the following code, replacing the placeholder with your stamp's internal name: var cAsk = "Date of Filing:"; var cTitle = "Date Filed"; if (event.source.forReal && (event.source.stampName == "#YOUR_STAMP_NAME")) { var cMsg = app.response(cAsk, cTitle); event.value = cMsg; }
Save the PDF file, close it, and apply your new stamp to a document to test the interactive dialog box.

Use a Dynamic Stamp Dialog Creator Tool
Use a third-party application or wizard to automatically generate the necessary JavaScript for your interactive stamp.
Easily Add Custom Dates and Stamps with WPS Office
If writing complex JavaScript for Adobe Acrobat feels overwhelming, WPS PDF provides an intuitive interface that allows you to add custom text, personalized stamps, and dynamic dates to your documents in seconds without any coding.
- 1. Open Your PDF: Launch WPS Office and open the PDF document you need to edit.
- 2. Navigate to Stamps: Go to the 'Comment' tab on the top ribbon and click on the 'Stamp' icon.
- 3. Create Custom Stamp: Select 'Custom Stamp' from the dropdown menu to design a completely new stamp.
- 4. Apply Custom Text and Date: Type your specific filing date or custom text directly into the stamp designer, then click anywhere on the document to apply it.

Frequently Asked Questions
How do I find the actual internal name of an Acrobat stamp?
You can find the unique internal stamp name (which usually looks like a random string, e.g., #2QNz0Z9...) by applying the stamp to a blank PDF and using the Acrobat JavaScript Debugger console to inspect the annotation's 'stampName' property, or by opening the stamp's source PDF file directly from the AppData folder.
Why is my dynamic stamp showing the system date instead of prompting me?
Standard dynamic stamps in Acrobat use a default calculation script (such as util.printd) that automatically pulls the current date from your computer's system clock. To prompt for a manual date, you must delete that default code and replace it with an interactive app.response() JavaScript snippet.
Do I need Acrobat Pro to create dynamic JavaScript stamps?
Yes, creating custom form fields, writing calculation scripts, and building new dynamic stamps requires Adobe Acrobat Standard or Pro. Adobe Acrobat Reader can only apply pre-existing stamps but cannot author or edit JavaScript fields.




