How to Prevent Default PDF Form Values from Printing
Question details
The user wants to keep default placeholder values visible on-screen in a PDF form but ensure these default values do not appear when the document is printed.

- Product
- PDF Editors (Acrobat, WPS PDF)
- Device & OS
- not provided
- Scenario
- Printing a completed or partially completed PDF form that contains default or placeholder text.
- Observed behavior
- Standard PDF readers print everything visible on the screen, meaning unfilled fields with default values will be printed onto the physical copy unless intervened.
Ensure you are using a professional PDF editor that supports JavaScript execution and form field properties, as standard PDF readers cannot dynamically alter field visibility during the print process.
Use JavaScript and a Custom Print Button to Hide Fields
Create a custom print button that executes a JavaScript action to temporarily hide fields with default values, open the print dialog, and then restore the fields.
Standard PDF readers do not offer a built-in toggle to conditionally hide default values during printing. By utilizing a custom button tied to JavaScript, you can intercept the print action, hide the fields that still contain default values, print the document, and make the fields visible again immediately after.
Open your PDF form in a PDF editor that supports form creation and JavaScript, such as Adobe Acrobat or WPS Office.
Navigate to the 'Forms' or 'Prepare Form' toolset and insert a new Button field onto your document page.
Right-click the newly created button, select 'Properties', and go to the 'General' tab. Change the 'Form Field' property to 'Visible but doesn't print' so the button itself won't show up on paper.
Go to the 'Actions' tab in the Properties window. Select 'Mouse Up' as the trigger and 'Run a JavaScript' as the action, then click 'Add'.
Input a script that loops through the form fields, checking if the current value matches the default value. If it does, set the field's display property to hidden. Add the command `app.execMenuItem('Print');` to trigger the print dialog, followed by a loop that restores the display property of those fields back to visible.

Create and Print Professional PDF Forms with WPS PDF
Easily design, edit, and print interactive PDF forms with WPS Office. Whether you are managing form fields, adding custom interactive buttons, or securely printing filled data, WPS PDF provides a comprehensive toolkit for all your document needs.
- 1. Open WPS Office: Launch WPS Office and open your PDF form document using the WPS PDF tool.
- 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to insert, edit, and manage form fields and interactive buttons.
- 3. Print Your PDF: Once your form is finalized, go to 'Menu' > 'Print' to configure your layout, page range, and final printing preferences.

Frequently Asked Questions
Can I hide specific PDF elements from printing without using JavaScript?
Yes, in many PDF editors, you can right-click a form field, go to Properties, and under the General tab, change the Form Field property from 'Visible' to 'Visible but doesn't print'. However, this applies to the field entirely, not conditionally based on whether it has a default value.
Why do my PDF form placeholder texts print out by default?
PDF readers treat placeholder text or default values in form fields as standard document content. Unless instructed otherwise via field properties or conditional JavaScript, the software will print exactly what is displayed on the screen to maintain visual consistency.
Is there a native setting in Adobe Acrobat to exclude default values on print?
No, Adobe Acrobat does not have a built-in checkbox or setting specifically designed to display default values on-screen while excluding them from the physical printout. Custom scripting through action buttons is required to achieve this.




