Fix an Acrobat Dynamic Stamp Order Number Prompt
Question details
The user needs an Acrobat dynamic stamp to prompt for a shop order number when placed on a customer purchase order.

- Product
- Adobe Acrobat dynamic stamps
- Device & OS
- not provided
- Scenario
- A user places a dynamic stamp on a customer purchase order and enters an order number in a prompt.
- Observed behavior
- The stamp script checks event.source.forReal and a stamp name, but the expected prompt does not appear.
Open the dynamic stamp PDF in Acrobat and locate its Order form field. In Acrobat Preferences, check that JavaScript is enabled, and have a test purchase order PDF ready for placing the stamp.
Verify the stamp identifier and update the prompt script
Use this method when a stamp is placed without displaying its order number prompt.
Acrobat may assign a generated stamp identifier rather than a readable label. A comparison with a guessed value such as #OrderStamp can therefore prevent the prompt from running.
Open the stamp PDF in Acrobat, choose Prepare a form, and confirm that the field intended to display the number is named Order. Open its Properties and select Calculate to inspect its custom calculation script.
In the Order field's custom calculation script, temporarily add console.println('Stamp name: ' + event.source.stampName) inside an event.source.forReal check. Open Acrobat's JavaScript console, then place the stamp on a test PDF and read the logged identifier.
Return to the Order field's Calculate script and replace the guessed stamp name with the exact identifier from the console. For example, use: if (event.source && event.source.forReal && event.source.stampName === 'ACTUAL_STAMP_NAME') { var order = app.response('Enter the shop order number:'); if (order !== null) event.value = order; }
Save the stamp PDF, then use Acrobat's Stamp tool to place it on the test purchase order. Enter an order number in the prompt and check that it appears in the stamp.

Work with purchase order PDFs in WPS Office
WPS Office is a free, lightweight alternative for everyday document and PDF work, with a familiar interface and compatibility that makes it easy to move existing Office files. It does not repair Acrobat dynamic-stamp JavaScript.

Frequently Asked Questions
Why does my stamp name comparison fail?
Acrobat often uses a generated identifier instead of the stamp's readable label. Log event.source.stampName while placing the stamp and compare against that exact value.
Where should the order number prompt script go?
Open the stamp PDF in Acrobat, choose Prepare a form, and open the Order field's Properties. Add the script under Calculate as a custom calculation script.
What does event.source.forReal do?
In a dynamic stamp calculation, event.source.forReal helps distinguish actual stamp placement from design or preview processing. Use it as a condition before calling app.response.
What should I check if the prompt still does not appear?
Check that Acrobat JavaScript is enabled in Preferences, inspect the JavaScript console for errors, and confirm that the edited stamp is installed in an allowed stamps location and is the one you placed.




