How to Print Only Selected Checkbox Items in a PDF Form
Question details
The user needs to print only the selected checkbox items and relevant required information from a comprehensive laboratory order PDF form.

- Product
- Acrobat Form (PDF)
- Device & OS
- not provided
- Scenario
- Preparing an interactive laboratory order form where the printed physical copy should selectively omit unselected tests to save space and improve readability.
- Observed behavior
- By default, printing the form captures all fields and checkboxes, including unselected ones, which clutters the physical document with irrelevant information.
Ensure your PDF editor supports JavaScript execution and that you have the necessary permissions to edit form properties and modify field actions.
Use JavaScript to Hide Unselected Fields Before Printing
Add a custom JavaScript action to the form checkboxes that dynamically hides text fields for unselected items, ensuring only relevant data is printed.
By utilizing a compatible PDF editor's built-in JavaScript engine, you can change the visibility properties of form fields based on whether a checkbox is checked. Fields set to be hidden will not appear on the screen or on the final printed page.
Open your PDF form in a PDF editor that supports advanced form field creation and switch to Form Editing mode.
Right-click the checkbox you want to configure and select 'Properties'. Navigate to the 'Actions' tab.
Select 'Mouse Up' as the trigger and 'Run a JavaScript' as the action. Enter a script that toggles the target text field's display property (e.g., using display.hidden and display.visible) based on the checkbox's checked state.
Exit form editing mode, check the desired boxes to verify the required text fields appear, and then proceed to print the document. The hidden fields will be automatically excluded from the printout.

Create a Dynamic Summary Page
Designate a separate page at the end of the document to compile selected tests automatically, and print only that specific page.
Manage and Print PDF Forms Effortlessly with WPS Office
WPS Office provides a comprehensive PDF toolkit that allows you to easily view, fill, and print interactive PDF forms. Whether you need to manage checkboxes, interact with form fields, or selectively print specific pages like a summary sheet, WPS PDF simplifies your document workflow.
- 1. Open Your PDF Form: Launch WPS Office and open your interactive PDF laboratory order form.
- 2. Fill Checkboxes and Fields: Click on the checkboxes to select your required tests and fill out any necessary text fields.
- 3. Access Print Settings: Click on 'Menu' in the top-left corner and select 'Print' (or press Ctrl+P) to open the print dialog window.
- 4. Print Selected Pages: Under 'Pages to Print', specify the exact page numbers you wish to print (such as your dynamic summary page) to avoid printing the entire document with unselected items.

Frequently Asked Questions
Can I print a PDF form without printing the blank fields?
Yes, you can avoid printing blank fields by using a PDF editor to run JavaScript that conditionally hides unselected checkboxes and empty text fields before you print. Alternatively, flattening the PDF can sometimes help finalize the visible state based on your selections.
Why are my selected PDF checkboxes not printing correctly?
This typically occurs if the form fields are configured as 'Visible but doesn't print' in their properties. Check the form field properties in your PDF editor to ensure the display is set to 'Visible' for print output.
How do I print only a specific section of a PDF form?
If you do not want to use JavaScript, you can zoom into the area you want to print, open the Print dialog, and choose the 'Print Current View' or 'Selected Area' option under the print range settings.




