Lock Fillable PDF Form Fields After Completion in Adobe Acrobat
Question details
Create a fillable PDF form whose completed fields can be locked before the recipient returns it.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A recipient completes a PDF form and returns a version that is no longer readily editable.
- Observed behavior
- The desired workflow lets the recipient complete the form, lock its fields, and save or submit the completed PDF.
Prepare the fillable fields in Adobe Acrobat and confirm which PDF application recipients will use. Test whether that application supports PDF JavaScript or digital signatures, depending on the locking method you choose.
Add a button that makes completed fields read-only
Use a JavaScript button when recipients can run PDF JavaScript and will save or send the completed form separately.
This method sets form fields to read-only; it does not flatten the PDF or prevent someone with suitable editing tools from changing the fields.
Open the PDF in Adobe Acrobat and choose All tools > Prepare a form.
Select the button field tool, place a button on the form, and label it something like Lock completed form.
Open the button's Properties, select the Actions tab, choose Mouse Up as the trigger and Run a JavaScript as the action, then select Add.
In the JavaScript editor, enter: for (var i = 0; i < this.numFields; i++) { var f = this.getField(this.getNthFieldName(i)); if (f && f.type !== 'button' && f.type !== 'signature') f.readonly = true; }
Save the form, open it in the recipient's PDF application, fill it out, and click the lock button. Confirm the fields are read-only, then use File > Save As and return the saved PDF through the agreed channel.

Lock form fields with a digital signature
Use a signature field when the recipient can digitally sign the form and the signature should lock specified fields.
Use WPS Office for everyday PDF and document work
WPS Office is a free, lightweight alternative for working with PDFs and Office documents in a familiar interface. Its format compatibility helps you move existing files into your workflow; use Acrobat or another compatible PDF tool when you need the form-locking actions described above.

Frequently Asked Questions
Does making PDF fields read-only flatten the form?
No. A read-only action leaves the form fields in the PDF but prevents ordinary editing through those fields. Flattening is a different process that converts the field appearances into page content.
Will the lock button work in every PDF viewer?
No. The viewer must support PDF JavaScript and allow it to run. Test the button in the recipient's application before sending out the form.
Does the JavaScript button automatically email the completed form?
No. The example only makes fields read-only. The recipient must save the completed PDF and return it separately, unless you configure and test a separate submission workflow.
Can someone change a form after its fields are set to read-only?
Read-only fields discourage ordinary edits but are not a security guarantee. A person with suitable PDF editing tools may be able to change the field settings.
How do I lock fields when the recipient signs?
In Acrobat's Prepare a form tool, open the signature field's Properties. On the Signed tab, enable Mark as read-only and select the fields to lock when the signature is applied.




