How to Fix Custom Acrobat Stamp Not Prompting for Input
Question details
A custom dynamic stamp in Adobe Acrobat stops prompting the user for input after the application is closed and reopened.

- Product
- Adobe Acrobat 2017
- Device & OS
- not provided
- Scenario
- Using a custom dynamic PDF stamp that requires user input via a JavaScript prompt dialog to populate stamp fields.
- Observed behavior
- The prompt dialog stops appearing when the stamp is applied. This usually happens because the stamp name checked within the script no longer matches the actual stamp name.
Make sure you have access to the JavaScript editor in Acrobat and that JavaScript execution is enabled in your PDF viewer's preferences.
Verify and Update the Custom Stamp Name in JavaScript
Use a temporary alert to identify the actual internal name of your custom stamp and update your script's condition to match it.
Dynamic stamps rely on JavaScript to trigger pop-up prompts. If the script explicitly checks for a specific stamp name (e.g., #APStamp) and the actual internal name changes after restarting Acrobat, the prompt will fail to appear.
Go to the 'Prepare Form' or JavaScript editing tool in Acrobat, and locate your custom stamp's calculation or action script.
Insert the line `app.alert(event.source.stampName);` at the very beginning of your script. This will force Acrobat to display the true internal stamp name.
Save the script, close the editor, and apply the stamp to a blank PDF document. Note the exact stamp name that appears in the pop-up alert dialog.
Compare the alerted name to the one in your script's 'if' condition. Update the script to match the actual name, then delete the temporary alert line.

Easily Add and Manage Custom Stamps with WPS PDF
If troubleshooting complex JavaScript in PDF editors is slowing you down, WPS Office provides a straightforward and highly compatible PDF editor. Easily create, manage, and apply custom stamps without dealing with scripting errors.
- 1. Open your PDF document: Launch WPS Office, select the 'PDF' module, and open the document you wish to edit.
- 2. Access the Stamp tool: Navigate to the 'Comment' tab on the top ribbon and click on the 'Stamp' icon.
- 3. Create a new custom stamp: Select 'Custom Stamp' from the dropdown menu to upload your own design, signature, or text prompt.
- 4. Apply your stamp: Click anywhere on the PDF page to place your custom stamp instantly, bypassing any need for script debugging.

Frequently Asked Questions
Why do dynamic stamps stop prompting in Acrobat after a restart?
When Acrobat is closed and reopened, the internal stamp name may initialize differently. If your JavaScript contains a strict condition checking for a specific name, the mismatch will cause the prompt to fail.
How do I find the real internal name of a PDF stamp?
You can find the real internal name by adding a temporary JavaScript line: `app.alert(event.source.stampName);`. When you apply the stamp, a dialog box will reveal its exact system name.
Can I create custom stamps without using JavaScript?
Yes, basic custom stamps involving static text and images do not require JavaScript. However, dynamic stamps that request user input via dialog boxes or automatically insert current times/dates do require scripting.




