How to Lock PDF Form Fields After Data Entry
Question details
The user wants to prevent further modifications to PDF form fields once all necessary information has been entered and saved.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Securing completed PDF forms to ensure data integrity before sharing, submitting, or archiving the document.
- Observed behavior
- PDF form fields remain interactive and editable by default after saving, requiring a specific method to lock the data or convert the fields to static text.
Verify that all required data has been entered correctly into the form, as flattening the document or applying strong editing restrictions will prevent future modifications.
Flatten the PDF Document to Lock All Fields
Flattening a PDF converts all interactive form fields into standard static text, making it the easiest and most universally supported way to lock data.
When you flatten a PDF, visual elements like form fields, annotations, and stamps are merged with the background document. This permanently removes interactivity, ensuring no one can alter the entered values.
Launch your PDF editor and open the document containing the filled-out form fields.
Navigate to 'File' and select 'Print', or press Ctrl + P (Windows) / Cmd + P (Mac) on your keyboard.
In the printer dropdown list, choose 'Microsoft Print to PDF', 'WPS PDF', or any other built-in virtual PDF printer.
Click the 'Print' button. You will be prompted to save the file. Choose a new destination and file name to save the flattened, locked version of your form.

Set Form Fields to Read-Only
You can manually change the properties of specific form fields to 'Read-Only' so users can view but not alter the entered information.
Apply Password Permissions to Restrict Editing
Use PDF security features to restrict editing permissions for the entire document, requiring a password to make any changes.
Secure and Lock Your PDF Forms with WPS Office
WPS Office provides robust PDF editing tools that allow you to easily fill out forms, flatten documents, and apply password protection to lock data securely before sharing.
- 1. Open your PDF form: Launch WPS PDF and open the interactive form you need to complete.
- 2. Fill in the required data: Click on the interactive fields to type in your information and complete the form.
- 3. Flatten or Encrypt: Go to the 'Protect' tab to apply an editing password, or use the 'Print' function (selecting WPS PDF as the printer) to save it as a flattened, uneditable PDF.
- 4. Save and share: Save the newly secured document to your preferred location, ready for safe distribution.

Frequently Asked Questions
Can I unlock a flattened PDF form later?
No. Once a PDF is flattened and saved, the form fields are permanently merged with the document's background and converted into static text. It is highly recommended to keep a backup of the original fillable form before flattening.
Does setting a field to read-only prevent all changes?
Setting a field to read-only prevents standard users from typing in or changing the text inside that specific field. However, someone with access to a PDF editor could theoretically uncheck the read-only property unless you also apply an editing permissions password.
How can I lock specific fields automatically using JavaScript?
In advanced PDF editors that support scripting, you can add document-level JavaScript or assign a script to a submit button that changes the `readonly` property of specific fields to `true` upon execution. This is useful for automated workflows.




