How to Fix PDF Form Buttons Changing from Visible to Hidden
Question details
Users experience PDF form buttons automatically changing their visibility status from 'Visible' to 'Hidden' after previewing, saving, or reopening the document.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Editing and saving interactive PDF forms containing button fields.
- Observed behavior
- Buttons that are manually set to 'Visible' unexpectedly revert to 'Hidden' without direct user intervention, usually upon document save, preview, or reopening.
Before troubleshooting, ensure you have a backup copy of your original PDF form to prevent accidental data loss while modifying scripts or form properties.
Review and Remove Conflicting Scripts or Actions
Identify and delete any hidden document-level or field-level scripts programmed to change the button's visibility upon certain triggers.
PDF fields rarely change visibility on their own. This issue is almost always caused by a JavaScript or an action trigger (such as 'Mouse Up' or 'Document Save') that overrides the manual 'Visible' setting.
Right-click the affected button in your PDF editor's form editing mode and select 'Properties' from the context menu.
Navigate to the 'Actions' tab. Look for any triggers (such as Mouse Up, Page Open, or Document Save) that have an action set to 'Hide/Show a field' or 'Run a JavaScript'.
If the button properties are clear, check the document-level JavaScripts. Look for scripts executed upon saving or opening the document that might target the button's display state.
Select the conflicting action or script and delete it, or modify the code so it no longer sets the field display state to 'Hidden'.

Verify Default Field Display Settings
Ensure the button's default state wasn't accidentally set to hidden during the initial form creation.
Create and Manage PDF Forms with WPS Office
WPS Office provides an intuitive PDF editor that lets you seamlessly create interactive forms, add buttons, and manage field properties without unexpected script conflicts.
- 1. Open Your PDF: Launch WPS Office and open your PDF form document.
- 2. Enter Form Mode: Navigate to the 'Form' tab on the top ribbon to access the interactive form editing tools.
- 3. Adjust Button Properties: Right-click any button, select 'Properties', and easily set it to 'Visible' without dealing with complex scripting.

Frequently Asked Questions
Why do my PDF form fields disappear when I print the document?
In the field properties under the General tab, the visibility might be set to 'Visible but doesn't print'. Change the drop-down setting to 'Visible' to ensure the field appears on printed copies.
How do I find hidden scripts in my PDF?
You need to check the document-level JavaScripts and the 'Actions' tab within the properties of each form field, page, or document trigger (like Document Save or Page Open) using a professional PDF editor.
Can I lock a PDF form button so it stays visible?
Yes. In the button's Properties dialog, you can check the 'Locked' option in the lower-left corner. This prevents accidental changes to its layout, position, and visibility settings.




