Fix PDF Form Fields Changing Text Color and Formatting
Question details
Users experience incorrect text colors, missing formatting, or large file sizes when filling out interactive PDF forms.

- Product
- PDF Forms
- Device & OS
- not provided
- Scenario
- Users fill out and return a PDF form containing JavaScript for text color and phone number formatting.
- Observed behavior
- The returned forms display incorrect text colors (gray instead of black), lack proper phone-number formatting, and may have unusually large file sizes.
Verify the devices and software your recipients are using to open the PDF, as many built-in browser viewers and mobile apps do not fully support PDF JavaScript.
Ensure Usage of a Fully Compatible PDF Viewer
Directing users to a compatible PDF application ensures that JavaScript for colors and formatting executes properly.
Many modern web browsers and default mobile PDF viewers strip out or ignore custom JavaScript embedded in PDF forms. To ensure the form behaves as intended, users must open it in a dedicated, script-compatible PDF reader.
Ask the users who submitted the problematic forms which application (e.g., Chrome, Apple Preview, Adobe Acrobat) and device they used to fill out the document.
Instruct users to download and use a standard, JavaScript-compatible PDF viewer on a desktop system rather than a mobile or browser-based app.
Have the user fill out the form again using the recommended software to confirm the text colors and formatting apply correctly.

Simplify PDF Form Fields and Remove Custom Scripts
Removing complex JavaScript interactions reduces the chance of viewer incompatibility.
Use WPS Office for Highly Compatible PDF Form Processing
WPS PDF provides robust support for interactive PDF forms, ensuring that standard text fields, checkboxes, and formatting are preserved accurately when filling out and saving documents.
- 1. Open the PDF form: Launch WPS Office and open your interactive PDF form document.
- 2. Fill in the fields: Click on the interactive form fields; WPS PDF will handle standard text inputs and formatting smoothly.
- 3. Save the filled form: Click 'Save' or 'Export to PDF' to finalize the document with the filled data preserved correctly.

Frequently Asked Questions
Why do PDF form fields work on my computer but fail for others?
Different PDF viewers process interactive elements differently. While desktop applications often support complex JavaScript, browser-based viewers (like Chrome or Edge) and default mobile apps (like Apple Preview) usually strip or ignore advanced PDF scripts.
Can I prevent the PDF file size from bloating when users save the form?
Yes. File size bloat usually happens when third-party editors append redundant data instead of cleanly saving form fields. Recommending a standardized PDF editor or flattening the form after filling can prevent this.
Is there a way to force users to open the PDF in a specific app?
You cannot strictly force an application, but you can add a visible cover page to the PDF that warns users to 'Open with a dedicated PDF reader' if the form fields do not display properly in their current viewer.




