PDF Editing Issues

Fix an Acrobat Dynamic Stamp Order Number Prompt

Tauseeq MagsiTauseeq Magsi Nov 19, 2026 868 views

Question details

The user needs an Acrobat dynamic stamp to prompt for a shop order number when placed on a customer purchase order.

Fix an Acrobat Dynamic Stamp Order Number Prompt
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.
Before you start

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.

Solution 1Recommended

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.

1
Check the Order field

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.

2
Log the actual stamp name

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.

3
Update the comparison

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; }

4
Save and test the stamp

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.

Verify the stamp identifier and update the prompt script
If the prompt still does not appear: Check Acrobat's JavaScript console for errors, confirm the edited stamp is the one being placed, and verify that the stamp is installed in an Acrobat stamps location allowed by your security settings. Administrator policies may also restrict JavaScript.
Free Microsoft Office alternative

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.

Open purchase order PDFs for everyday review and editingCompatible with Microsoft Word, Excel, and PowerPoint formatsFamiliar interface for users moving from Microsoft OfficeFree, lightweight tools for common document tasks
microsoft office alternative - wps office

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.