PDF Editing Issues

How to Keep Acrobat Form Fields Hidden When Printing

Huda QurayshiHuda Qurayshi Nov 3, 2026 868 views

Question details

The user needs to understand why PDF form fields intended to be hidden during printing revert to visible, and how to maintain the correct display properties.

How to Keep Acrobat Form Fields Hidden When Printing
Product
PDF Form Editor
Device & OS
not provided
Scenario
Clicking a button or executing a form action on a PDF document with fields designated to be hidden when printed.
Observed behavior
Form fields set to “Visible but hidden when printed” unexpectedly revert to “Visible” on printed pages after a button action or script runs.
Before you start

Before modifying form properties, save a backup copy of your original PDF document and ensure you have access to the JavaScript editor within your PDF application.

Solution 1Recommended

Review and Update JavaScript Display Properties

Identify if a button's JavaScript action is overriding the field's display state, and update the script to maintain the non-printing status.

When an action or script executes on a PDF form, it can dynamically change field properties. If a script explicitly sets a field to 'visible', it will overwrite the 'Visible but hidden when printed' setting.

1
Open Prepare Form mode

Open your PDF document and activate the Prepare Form tool to view all interactive elements.

2
Access button properties

Right-click the specific button or field that triggers the error and select Properties from the context menu.

3
Check JavaScript actions

Navigate to the Actions tab and look for any 'Run a JavaScript' actions associated with the Mouse Up or click events.

4
Edit display property code

Edit the script to ensure the target field is set using the correct display property. To keep it visible on screen but hidden when printing, use 'display.noPrint' instead of 'display.visible'.

Review and Update JavaScript Display Properties
Consistent JavaScript Values: Always test the form after editing scripts to ensure the new display state persists across multiple button clicks.
Easy PDF Form Management

Manage PDF Form Properties with WPS Office

WPS Office includes a comprehensive, user-friendly PDF editor. You can easily create, manage, and configure PDF form fields—including setting them to be hidden during printing—without dealing with complex JavaScript conflicts.

  1. 1. Open your PDF: Launch WPS Office and open the PDF document that requires form field adjustments.
  2. 2. Navigate to Form tools: Click on the Form tab on the top ribbon to reveal the interactive form field editing options.
  3. 3. Edit field visibility: Double-click the target field to access its properties, then adjust its visibility settings so it will not appear on printed pages.
  4. 4. Test via Print Preview: Press Ctrl+P (or Cmd+P on Mac) to open the print preview and confirm the field is successfully hidden.
Intuitive PDF form creation and editing toolsEasily configure fields to 'Visible but doesn't print'Fully compatible with standard PDF documents and formatsFree, lightweight, and fast document processing
microsoft office alternative - wps office

Frequently Asked Questions

Why do my PDF form fields print even when set to hidden?

This typically occurs because a button action or an underlying JavaScript event runs and overrides the default field properties, automatically resetting the field's display state back to fully visible.

What is the correct JavaScript code to hide a field when printing?

To ensure a field is visible on the screen but hidden on the physical printout, set the field's display property using the script: `getField("FieldName").display = display.noPrint;`.

Does importing forms from InDesign cause PDF scripting issues?

Yes, PDF fields generated during an InDesign export can retain complex legacy properties that may conflict with manual script configurations. Deleting and recreating the field directly in your PDF editor often resolves these conflicts.

How can I quickly verify if a field is hidden before actually printing?

You can confirm your settings without wasting ink by opening the Print dialog. The print preview window dynamically renders exactly what elements will be pushed to the printer, accurately reflecting any hidden field rules.