How to Disable PDF Form Field Highlighting When Opening a Document
Question details
The user wants to prevent PDF form fields from automatically showing a highlight color when the document is opened by a reader.

- Product
- Adobe Acrobat and standard PDF Readers
- Device & OS
- not provided
- Scenario
- Distributing a custom-designed fillable PDF document where default runtime form field highlights interfere with the document's visual presentation.
- Observed behavior
- When the document opens, the PDF reader automatically displays a colored highlight box around all fillable fields based on the application's user preferences.
Before applying document-level JavaScript, ensure you have a backup of your original PDF form, as altering application-level scripts will affect how the viewer's software behaves for other PDFs.
Disable Runtime Highlighting via Document-Level JavaScript
Use a custom JavaScript snippet to automatically turn off the application's runtime highlighting preference as soon as the PDF document is opened.
By default, standard PDF readers like Acrobat highlight fillable form fields so users know where to type. You can override this behavior programmatically using document-level JavaScript.
Keep in mind that changing this setting modifies the user's application preferences globally. It is highly recommended to test the PDF thoroughly, as turning off runtime highlights will persist even after your specific document is closed.
Launch Adobe Acrobat, open your PDF form, navigate to the 'Tools' menu, select 'JavaScript', and click on 'Document JavaScripts'.
Type a recognizable name for your script, such as 'DisableHighlight', and click 'Add' to open the JavaScript editor window.
In the editor, delete any default text and paste the following code: if (app.runtimeHighlight) { app.runtimeHighlight = false; }
Click 'OK' to save the script, then close and save the PDF document. Reopen the file to verify that the colored boxes around the form fields no longer appear.

Fill and Manage PDF Forms Seamlessly with WPS PDF
Avoid complex JavaScript configurations that alter user settings. WPS PDF offers an intuitive, user-friendly interface for reading and filling out forms, ensuring a clean and distraction-free experience out of the box.
- 1. Open the PDF File: Launch WPS Office, click on 'Open', and select your fillable PDF document to load it in the built-in WPS PDF reader.
- 2. Interact with the Form Fields: Click directly into any text box or checkbox. WPS PDF intelligently detects form fields and allows immediate data entry without overwhelming visual highlights.
- 3. Input and Format Data: Type your required information, utilize dropdown menus, or apply digital signatures natively using the top 'Fill & Sign' toolbar.
- 4. Save the Completed Form: Click the floppy disk 'Save' icon or press 'Ctrl + S' to save the completed form while retaining full cross-platform compatibility.

Frequently Asked Questions
Why do PDF readers highlight form fields by default?
Form field highlighting is an accessibility and usability feature designed to help users quickly locate fillable areas, checkboxes, and digital signature boxes within a document.
Will disabling app.runtimeHighlight affect other PDF documents?
Yes. The JavaScript command modifies the PDF reader's application-level preferences. If not restored upon closing the document, highlighting will remain turned off for any subsequently opened PDFs.
Can I remove form field highlighting without using JavaScript?
Yes, but only on an individual user basis. Users can manually disable this in their reader settings (for example, Edit > Preferences > Forms > unchecking the field highlight option), but creators cannot force this globally without using JavaScript.




