PDF Editing Issues

How to Show Selected PDF Form Pages in Adobe Acrobat

Anum MushtaqAnum Mushtaq Oct 28, 2026 869 views

Question details

The user wants to allow form fillers to select which pages of a multi-page PDF form they need to complete, while hiding or disabling the unselected ones.

How to Show Selected PDF Form Pages in Adobe Acrobat
Product
Adobe Acrobat Pro 2017
Device & OS
not provided
Scenario
Distributing a 23-page PDF form where users only need to fill out specific sections relevant to them based on checkbox selections.
Observed behavior
Dynamically spanning or removing PDF pages depending on user input so that only the selected sections are visible for completion.
Before you start

Ensure you have Adobe Acrobat Pro installed. Standard Adobe Acrobat Reader cannot create page templates or configure JavaScript form actions, though it can execute them once the document is properly configured.

Solution 1Recommended

Use Template Pages and JavaScript to Spawn or Hide Pages

By converting optional pages into hidden templates and tying JavaScript to form checkboxes, you can dynamically display only the pages users select.

This method involves turning the pages you want to be optional into Page Templates. These templates act as hidden blueprints that can be 'spawned' (instantiated) when a user interacts with a checkbox, and deleted when the user unchecks the box.

1
Create Page Templates

Open your PDF in Acrobat Pro. Navigate to 'Organize Pages'. Select a page you wish to make optional, click the 'More' dropdown, and choose 'Page Templates'. Enter a unique name for the template, click 'Add', ensure the 'Visible' icon (an eye) is toggled off to hide the template by default, and click 'Close'.

2
Set Up Selection Checkboxes

Go to 'Tools' and open 'Prepare Form'. On your main index or instructions page, use the Checkbox tool to draw checkboxes corresponding to the optional pages users can choose.

3
Add JavaScript to Checkboxes

Right-click a checkbox and select 'Properties'. Go to the 'Actions' tab, choose 'Mouse Up' as the Trigger, and 'Run a JavaScript' as the Action. Click 'Add' to open the JavaScript editor.

4
Configure the Spawning Script

Input a script that checks if the box is checked (e.g., event.target.value !== 'Off'). If true, use the 'getTemplate()' method to spawn the page. If false, use the 'deletePages()' method to remove the dynamically spawned page. Click 'OK' to save.

5
Test the Form

Close the form editor and click 'Preview' at the top right. Click your checkbox to ensure the hidden page is added to the document structure, and uncheck it to verify the page is removed.

Use Template Pages and JavaScript to Spawn or Hide Pages
JavaScript Knowledge Required: Implementing this solution requires basic Adobe Acrobat JavaScript knowledge to correctly reference the template names and manage page indices when spawning and deleting.
Free Microsoft Office alternative

Manage PDFs and Office Documents Efficiently with WPS Office

While advanced JavaScript template spanning requires expensive licensed software like Adobe Acrobat Pro, WPS Office offers a free, lightweight, and incredibly intuitive alternative for everyday document management. Whether you need to fill standard PDF forms, extract and reorganize pages, or manage Word, Excel, and PowerPoint files natively, WPS Office provides all the essential tools in one unified interface.

  1. 1. Download and Install WPS Office: Visit the official WPS website, download the free installer, and complete the installation on your device.
  2. 2. Open Your Document: Launch WPS Office and drag and drop your PDF, Word, Excel, or PowerPoint document into the workspace.
  3. 3. Edit and Manage Pages: Navigate to the 'Page' tab to easily extract, insert, or delete pages to tailor your document to your exact needs.
Seamless format compatibility with Microsoft Office documents and standard PDF files.Easily extract, merge, split, and reorganize PDF pages without complex scripting.Built-in robust PDF reader with straightforward form filling and digital signing.Lightweight application that uses fewer system resources than heavy enterprise software.
microsoft office alternative - wps office

Frequently Asked Questions

Can I hide PDF pages dynamically without using JavaScript?

No, Adobe Acrobat requires JavaScript and Page Templates to dynamically hide and show pages based on user input like checkboxes. Basic PDF forms do not have native conditional visibility for entire pages without scripting.

Can Adobe Reader users trigger these page templates?

Yes. If the PDF form is created in Adobe Acrobat Pro and properly saved with extended rights (if older versions require it), users with the free Adobe Reader can check the boxes to trigger the JavaScript and spawn the pages.

Will unselected PDF template pages print?

No. Because unselected template pages are hidden and have not been spawned into the active document structure, they will not be included when the user prints the PDF.

How do I remove standard pages that shouldn't be optional?

To permanently remove pages instead of hiding them conditionally, you can simply open the 'Organize Pages' tool in Acrobat Pro, select the pages you no longer need, and click the trash can icon to delete them before distributing the form.