Other PDF Issues

Fill Blank PDF Form Fields with N/A Before Signing in Adobe Acrobat

Aamir Naveed AkramAamir Naveed Akram Nov 19, 2026 869 views

Question details

Fill blank PDF form fields with “N/A” when a signature is applied and the remaining fields become read-only.

Fill Blank PDF Form Fields with N/A Before Signing in Adobe Acrobat
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the form editor

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.

2
Add a button

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.”

3
Add the JavaScript action

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

4
Test and sign

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.

Add a button to fill blank fields before signing
Run the action before the lock: A script cannot reliably fill fields after the signature has made them read-only. Test the workflow in the PDF viewer used by the signer, because some viewers restrict or do not support Acrobat JavaScript.
Free Microsoft Office alternative

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.

Open and work with PDF forms alongside other documents.Compatible with Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTX.Familiar tools make the transition from Microsoft Office straightforward.Free, lightweight suite for everyday document tasks.
microsoft office alternative - wps office

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.