PDF Editing Issues

How to Disable PDF Form Field Highlighting When Opening a Document

Chanuka GeekiyanageChanuka Geekiyanage Nov 3, 2026 869 views

Question details

The user wants to prevent PDF form fields from automatically showing a highlight color when the document is opened by a reader.

How to Disable PDF Form Field Highlighting When a Document Opens
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 you start

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.

Solution 1Recommended

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.

1
Open Document JavaScripts

Launch Adobe Acrobat, open your PDF form, navigate to the 'Tools' menu, select 'JavaScript', and click on 'Document JavaScripts'.

2
Create a New Script

Type a recognizable name for your script, such as 'DisableHighlight', and click 'Add' to open the JavaScript editor window.

3
Enter the JavaScript Code

In the editor, delete any default text and paste the following code: if (app.runtimeHighlight) { app.runtimeHighlight = false; }

4
Save and Test

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.

Disable Runtime Highlighting via Document-Level JavaScript
Global Preference Modification: Because app.runtimeHighlight changes an application-wide preference, consider adding a complementary script to the 'Document Will Close' event to turn the highlight back on (set to true) to respect the user's original settings.

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. 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. 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. 3. Input and Format Data: Type your required information, utilize dropdown menus, or apply digital signatures natively using the top 'Fill & Sign' toolbar.
  4. 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.
Clean, distraction-free PDF form viewing and filling interfaceFully compatible with standard PDF forms and Microsoft Office document formatsLightweight architecture ensures fast rendering of complex formsBuilt-in PDF toolkit for adding signatures, annotations, and text extraction
QA img-9

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.