How to Fix Acrobat Dynamic Stamp Not Asking for a Date
Question details
The user needs to fix a custom Acrobat dynamic stamp that fails to trigger a date prompt when applied to a PDF document.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Applying a custom dynamic stamp with a built-in JavaScript date prompt to a PDF file.
- Observed behavior
- The dynamic stamp skips the date prompt and instead displays its internal stamp name upon application.
Before troubleshooting the script, ensure that Acrobat's JavaScript features are enabled in the application preferences and open a blank test PDF to safely apply and debug the stamp.
Find and Update the Correct Internal Stamp Name
Retrieve the true internal identifier of your dynamic stamp using the Acrobat JavaScript console and update your script to ensure the date prompt triggers.
The internal stampName recognized by the Acrobat JavaScript engine often differs from the source PDF's filename. If the identifier in your script's condition does not match this internal name, the date prompt code will not execute.
Open a blank or test PDF document in Adobe Acrobat and apply the malfunctioning dynamic stamp.
Use the selection tool to click on the newly applied stamp so that it is actively highlighted.
Press Ctrl+J (Windows) or Cmd+J (Mac) to open the Acrobat JavaScript Debugger.
In the console, type 'this.selectedAnnots[0].AP' and execute it. This will reveal the stamp's actual internal identifier.
Open your dynamic stamp's JavaScript code and replace the incorrect stampName with the exact identifier revealed in the console.
Save your script, reinstall the stamp file into the correct Acrobat AppData folder, restart the application, and test the date prompt on a new document.

Easily Add and Customize PDF Stamps with WPS Office
Avoid complex JavaScript coding and debugging. WPS Office features an intuitive PDF editor with built-in dynamic stamps, allowing you to easily apply date and time stamps to your documents without any programming.
- 1. Open your PDF document: Launch WPS Office and open your desired PDF file using the WPS PDF tool.
- 2. Access the Stamp tool: Navigate to the 'Comment' tab on the top ribbon menu and click on the 'Stamp' icon.
- 3. Choose a dynamic stamp: Select from the gallery of built-in dynamic stamps that automatically capture the current date and time.
- 4. Apply to your document: Click anywhere on the PDF page to place your dynamic stamp instantly.

Frequently Asked Questions
Why does my dynamic PDF stamp show its file name instead of running the script?
This usually happens when the JavaScript condition relies on an incorrect stampName. The PDF application uses a unique internal identifier for stamps, which is often completely different from the file name you gave the PDF.
How do I open the JavaScript console in Adobe Acrobat?
You can open the built-in JavaScript console by pressing Ctrl + J on a Windows PC, or Cmd + J on a Mac. This tool is essential for running diagnostic commands like this.selectedAnnots[0].AP.
Will my dynamic stamp update the date automatically when I print the document?
No, dynamic stamps execute their scripts (like capturing the current date) only at the moment they are applied to the document. They act as permanent records and will not automatically update to a new date upon printing.
Can I create a dynamic date stamp without knowing JavaScript?
Yes. While creating custom dynamic stamps in Acrobat requires JavaScript knowledge, modern PDF editors like WPS Office include ready-to-use dynamic date and time stamps that require zero setup or coding.




