How to Remove Blue Form Field Highlights in a PDF
Question details
The user wants to prevent PDF form fields from displaying a blue highlight background and needs a way to make the filled fields read-only.

- Product
- Device & OS
- not provided
- Scenario
- Creating, reading, or filling out interactive PDF forms.
- Observed behavior
- PDF viewers default to highlighting fillable form fields in blue, which can distract from the document's design, and filled fields remain editable unless specifically restricted.
Ensure you have the necessary permissions to edit the PDF document and access to advanced PDF editing tools if you plan to insert document-level JavaScript.
Disable Form Field Highlighting using Document-Level JavaScript
Ideal for PDF authors who want to force the document to hide highlights when opened by compatible PDF readers.
By default, the blue highlight color is controlled by the viewer's personal application preference. However, as a document creator, you can use JavaScript to override this behavior upon opening the file.
Open your PDF in an advanced PDF editor that supports script management and navigate to the document-level JavaScript settings.
Create a new document-level script and input the following code: app.runtimeHighlight = false;
Apply the changes and save the document. The highlights will now be disabled when the file is opened in a supported viewer.

Turn Off Highlights in PDF Viewer Settings
Best for users who simply want to hide the blue fields while reading or filling out a form on their own device.
Set Completed Form Fields to Read-Only
Prevents further editing of filled fields, which natively removes the active field highlight in most viewers.
Manage PDF Form Fields Easily with WPS Office
WPS Office provides a comprehensive suite of PDF tools that make creating, filling, and managing PDF form fields incredibly straightforward without the need for complex scripting.
- 1. Download and Install: Download and install WPS Office for free on your preferred desktop or mobile device.
- 2. Open Your PDF Form: Launch WPS PDF and open the interactive PDF document you wish to edit or fill.
- 3. Manage Form Fields: Navigate to the 'Form' tab to seamlessly edit, fill out, or adjust the properties of your form fields.
- 4. Save and Export: Apply read-only settings if necessary, then save your finalized PDF document securely.

Frequently Asked Questions
Why do PDF form fields have a blue background by default?
The blue background is a default visual preference in many PDF readers designed to help users quickly identify fillable areas within a document. It is simply a guide and does not affect the actual data.
Can I permanently lock the highlight color setting in the PDF file itself without scripting?
Generally, no. The highlight color is an application preference controlled by the end-user's specific viewer settings. Document-level JavaScript is the only reliable way for an author to override this upon opening.
Will the blue highlight show up when I print the PDF form?
No, the blue field highlight is strictly an on-screen visual aid. When you print the document, the form fields will appear with a transparent or white background unless a specific background fill color was manually set by the creator.




