Fill Blank PDF Form Fields with N/A Before Signing in Adobe Acrobat
Question details
Fill blank PDF form fields with “N/A” when a signature is applied and the remaining fields become read-only.

- Product
- PDF form editor with Acrobat JavaScript support
- Device & OS
- not provided
- Scenario
- A PDF form should have its unused text fields populated before a digital signature locks them.
- Observed behavior
- The remaining fields become read-only when the signature is applied, preventing them from being filled afterward.
Open the unsigned form in an editor that supports Acrobat JavaScript, such as Adobe Acrobat Pro, and identify the exact names of the text fields to fill. Confirm that JavaScript is permitted and that those fields are editable before signing.
Add a button to fill blank fields before signing
Use a button action to populate selected blank text fields before the signature locks them.
A signing or signature-completion action may be available in some workflows, but it must run before the fields are locked. A separate button makes the order explicit: fill the fields first, then sign.
In Adobe Acrobat Pro, open the unsigned PDF and select All tools > Prepare a form. Check each target text field’s name in its properties.
In Prepare a form, choose the Button tool and place a button on the form. Open its Properties and give it a label such as “Fill blanks with N/A.”
In the button’s Properties, open the Actions tab. Select Mouse Up as the trigger and Run a JavaScript as the action, then click Add. Enter the following script, replacing the example names with your exact text-field names: var names = ["Field1", "Field2"]; for (var i = 0; i < names.length; i++) { var f = this.getField(names[i]); if (f && f.type === "text" && !f.readonly && /^\s*$/.test(String(f.value))) { f.value = "N/A"; } }
Close form editing, complete any applicable fields, and click the new button. Confirm that only blank target fields changed, then apply the digital signature using the form’s signature field or Acrobat’s certificate-signing tool.

Work with PDF forms and Office files in WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface for working with PDFs and documents. Its compatibility with common Office formats makes it easy to bring existing files into your workflow. For Acrobat-specific JavaScript and signature-lock actions, continue to use a compatible PDF form editor.

Frequently Asked Questions
Can I fill the fields after the PDF is signed?
If the signature locks the fields, they cannot be filled while that lock remains in effect. Populate them before signing; changing a signed PDF can also invalidate its signature.
How do I find a PDF form field’s name?
In Acrobat Pro, open All tools > Prepare a form, select the field, and open its Properties. Use its exact name in the script’s names array.
Will the script overwrite fields that already contain answers?
No. The example checks for empty or whitespace-only values and leaves other values unchanged. It also skips fields that are read-only or are not text fields.
Why does the button work in Acrobat but not another PDF viewer?
Some PDF viewers do not support Acrobat JavaScript or restrict it for security. Test the button in the viewer the signer will use, and check its JavaScript settings if the action does not run.




