How to Make PDF Form Fields Transparent for All Users in Acrobat
Question details
The user wants to ensure PDF form fields remain transparent and do not display the default highlight color for all users viewing the document.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating or distributing a PDF form where default form-field highlighting disrupts the intended visual design of the document.
- Observed behavior
- Form field highlighting defaults to the viewer's local application preferences, preventing the document creator from forcing transparency globally.
Before adding JavaScript to your PDF, note that PDF viewers handle form highlighting based on local user preferences. Any script modifying these settings will alter their application defaults, so it is best practice to notify users before they click the toggle.
Add a Non-Printing Button to Toggle Highlight Settings via JavaScript
Create a button within the PDF that allows users to turn form field highlighting on or off manually using Acrobat JavaScript.
Because highlighting is a user-level preference, you cannot permanently disable it for everyone from the document level without a script. A user-friendly approach is to provide a toggle button that controls the app.runtimeHighlight property.
Open your PDF form in Adobe Acrobat and navigate to the 'Prepare Form' tool.
Add a new Button field to the document, preferably at the top of the first page. Open the button properties and set its visibility to 'Visible but doesn't print' under the General tab.
Go to the 'Actions' tab of the button properties, select 'Run a JavaScript' from the Select Action dropdown, and click 'Add'.
Enter the following script to toggle highlights: var choice = app.popUpMenu("Highlight", "On", "Off"); if (choice == "On") app.runtimeHighlight = true; else if (choice == "Off") app.runtimeHighlight = false;
Click 'OK' and save the document. When clicked, this button will prompt the user to enable or disable field highlighting.

Disable Form Field Highlighting Manually in Preferences
Instruct your end-users to turn off form highlighting directly within their own Adobe Acrobat settings.
Easily Fill and Manage PDF Forms with WPS Office
WPS Office provides a comprehensive PDF editor that allows you to effortlessly view, fill, and modify PDF forms. With intuitive document tools, you can manage your forms professionally without relying on complex JavaScript workarounds.
- 1. Download WPS Office: Download and install WPS Office from the official website.
- 2. Open Your PDF Form: Launch WPS PDF and open the PDF form you need to view or edit.
- 3. Fill and Manage Fields: Click on the 'Form' tab to interact with, fill, or modify the form fields seamlessly.
- 4. Save Your Document: Save and share the completed PDF form while retaining full format compatibility.

Frequently Asked Questions
Why do my PDF form fields appear highlighted in light blue?
PDF viewers like Adobe Acrobat highlight form fields by default to help users easily identify where they need to type. This is a local application setting, not a permanent document property.
Can I permanently disable form highlighting for all users without a script?
No, you cannot permanently force form fields to be transparent for everyone natively. Highlighting is controlled by each individual user's viewer preferences, meaning they have the final say over their display settings.
Does the JavaScript toggle button work on mobile PDF viewers?
JavaScript support varies significantly across mobile PDF viewers. The Acrobat JS method using app.popUpMenu is generally only reliable on desktop versions of Adobe Acrobat and Reader.
How can I change the default highlight color instead of making it transparent?
Users can change the highlight color by going to Edit > Preferences > Forms in Acrobat, and selecting a new color palette under the 'Highlight Color' section.




