PDF Editing Issues

How to Fix Acrobat Dynamic Stamp Not Asking for a Date

Anum MushtaqAnum Mushtaq Nov 5, 2026 869 views

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.

How to Fix Acrobat Dynamic Stamp Not Asking for a Date
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 you start

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.

Solution 1Recommended

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.

1
Apply the stamp to a test document

Open a blank or test PDF document in Adobe Acrobat and apply the malfunctioning dynamic stamp.

2
Select the stamp

Use the selection tool to click on the newly applied stamp so that it is actively highlighted.

3
Open the JavaScript Console

Press Ctrl+J (Windows) or Cmd+J (Mac) to open the Acrobat JavaScript Debugger.

4
Run the identifier code

In the console, type 'this.selectedAnnots[0].AP' and execute it. This will reveal the stamp's actual internal identifier.

5
Update your stamp script

Open your dynamic stamp's JavaScript code and replace the incorrect stampName with the exact identifier revealed in the console.

6
Reinstall and test

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.

Find and Update the Correct Internal Stamp Name
Identifier Match: Once the stampName in your JavaScript condition strictly matches the internal AP identifier, the date prompt should execute reliably every time the stamp is placed.
WPS PDF Editor

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. 1. Open your PDF document: Launch WPS Office and open your desired PDF file using the WPS PDF tool.
  2. 2. Access the Stamp tool: Navigate to the 'Comment' tab on the top ribbon menu and click on the 'Stamp' icon.
  3. 3. Choose a dynamic stamp: Select from the gallery of built-in dynamic stamps that automatically capture the current date and time.
  4. 4. Apply to your document: Click anywhere on the PDF page to place your dynamic stamp instantly.
Easily insert pre-defined dynamic date and time stamps with one click.Seamless compatibility with standard PDF document formats.No JavaScript debugging or console coding required.Lightweight, fast, and highly user-friendly PDF editing interface.
microsoft office alternative - wps office

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.