Why Acrobat Form Validation Scripts Stop After Signing a PDF
Question details
Find out why a validation script no longer displays multiline field contents after a PDF is signed and how to preserve access to the text.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A PDF form uses a validation script to show the full contents of multiline text fields in a pop-up.
- Observed behavior
- The pop-up no longer appears after the PDF is signed.
Check whether the signature locks the relevant fields and whether the PDF contains a certification signature with restrictions. Open an unsigned copy in Acrobat and identify the exact names of the multiline fields you want to display.
Add a button to display field contents before signing
Use a button action instead of relying on a validation event that may no longer occur once fields are locked.
Signing does not automatically disable every PDF script. However, a field validation script normally runs when a field value is committed; if the signed form locks that field, the user may no longer be able to trigger validation by editing it.
Open the unsigned PDF in Acrobat and select All tools > Prepare a form. Check the field list or field properties for the exact name of each multiline text field.
In Prepare a form, select the button field tool, place a button on the page, and open its Properties. Give it a clear label such as Show full text.
In the button's Properties, open Actions. Set the trigger to Mouse Up, select Run a JavaScript, and click Add. For a field named Comments, enter: app.alert(this.getField('Comments').valueAsString); Replace Comments with the exact field name.
Save the form, enter multiline text, and click Show full text. Then sign a test copy and click the button again in Acrobat to confirm that the action is permitted and the text displays as expected.

Use WPS Office for everyday PDF and document work
WPS Office is a free, lightweight alternative with a familiar interface for working with documents and PDFs. Its Microsoft Office format compatibility helps you move existing files into your workflow. It does not fix Acrobat signature restrictions or guarantee that Acrobat form scripts will run.

Frequently Asked Questions
Does signing a PDF disable all JavaScript?
Not necessarily. A signature may lock fields or restrict changes, preventing a validation event from being triggered. Viewer settings and security restrictions can also affect JavaScript actions.
Why does the validation pop-up stop appearing when a field is locked?
A validation action generally runs when a field value is committed. If the signature locks the field, users may no longer be able to edit and commit its value to trigger the action.
Can I add the display button after the PDF is signed?
Add and test the button in an unsigned copy whenever possible. Editing a signed PDF may invalidate its signature or conflict with certification permissions.
Where can I check whether Acrobat JavaScript is enabled?
Open Acrobat Preferences and select JavaScript to review the JavaScript settings. Organizational security policies may also restrict scripts.
Will the button work in every PDF viewer?
Not always. PDF viewers differ in their support for form actions and JavaScript. Test the signed form in the viewer recipients will use.




