How to Add Optional Extra Pages to an Acrobat PDF Form
Question details
The user needs a method to allow respondents to dynamically add extra pages to a fillable PDF form for additional entries, and then return seamlessly to the next question in the document.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating a dynamic fillable PDF form where respondents might require more space than initially provided to list additional items or answers.
- Observed behavior
- The form must dynamically generate a new page based on a template when requested, maintain independent form fields, and offer navigation controls to return to the main form.
Ensure you are using the desktop version of Adobe Acrobat Pro, as Acrobat Reader does not allow you to create page templates or configure advanced document-level JavaScript.
Use Hidden Page Templates and Acrobat JavaScript
Create an extra page as a hidden template and use a JavaScript button action to spawn a duplicate page when the user requests more space.
By utilizing Adobe Acrobat's hidden page templates, you can store a pre-formatted extra page in the background. A custom JavaScript button will then 'spawn' (duplicate) this page into the active document when triggered by the user.
Create the additional page in your PDF exactly as you want it to appear for users needing extra space, including all necessary text fields.
Go to the 'Organize Pages' tool, select your new extra page, and click 'Page Templates' (often found under 'More'). Name your template (e.g., 'ExtraSpace'), check the 'Hidden' box, and click 'Add'.
Switch to 'Prepare Form' mode. Add a Button field on your main form page where the user will request more space. Double-click the button to open its Properties.
In the button Properties, go to the 'Actions' tab. Select 'Mouse Up' as the trigger and 'Run a JavaScript' as the action. Click 'Add' and enter the following code: `this.getTemplate('ExtraSpace').spawn({nPage: pageNum, bRename: true, bOverlay: false});` then click OK.
On your hidden template page, ensure you add a 'Return' button. Set its action to 'Execute a menu item' or use basic JavaScript to navigate the user back to the next sequential question on the main form.

Easily Edit PDF Pages and Forms with WPS Office
While dynamic JavaScript templates require specialized desktop software, you can effortlessly manage PDF pages, design standard fillable forms, and edit document structures using WPS Office's intuitive PDF tools.
- 1. Open your PDF: Launch WPS Office and open your PDF document using the built-in PDF editor.
- 2. Manage pages: Navigate to the 'Page' tab to easily view your document layout. Here you can click 'Insert Page' to manually add extra space anywhere in the document.
- 3. Edit form fields: Switch to the 'Form' tab to insert text fields, checkboxes, or dropdown menus into your newly added pages.
- 4. Adjust properties: Right-click any newly added form field to adjust its name, appearance, and default values to ensure it doesn't conflict with other fields.
- 5. Save and share: Click 'Save' to export your updated PDF form. The document remains fully compatible with standard PDF viewers.

Frequently Asked Questions
Why does the 'spawn page' button fail to work on mobile devices?
Most mobile PDF viewer apps and web browsers lack the advanced JavaScript engine required to execute Adobe Acrobat's specific page-template methods. These scripts generally only function correctly on robust desktop PDF applications.
How do I prevent form field names on the extra page from conflicting with the original?
When writing the spawn JavaScript, ensure you include the parameter `bRename: true`. This tells Acrobat to automatically rename the fields on the duplicated page so they can hold independent data.
Can I allow users to delete an extra page if they added it by mistake?
Yes. You can add a button on the template page itself with a JavaScript action like `this.deletePages(this.pageNum);`. This will allow users to remove the specific spawned page if it's no longer needed.
Is it possible to add blank pages without using JavaScript?
In a locked or restricted fillable form, users cannot natively insert pages without script triggers. However, if the PDF is not restricted, users with PDF editing software (like WPS PDF or Acrobat Pro) can manually insert blank pages via the 'Organize Pages' or 'Page' menu.




