How to Stop a PDF Form from Jumping After Spawning Pages
Question details
The user needs to prevent the PDF viewer from automatically navigating to another part of the document when a drop-down selection spawns new pages.

- Product
- Adobe Acrobat Pro DC
- Device & OS
- macOS and Windows
- Scenario
- Using an interactive PDF form where selecting an item from a drop-down list triggers a script to spawn additional pages.
- Observed behavior
- The application automatically moves the user's view to a different page instead of remaining on the page containing the drop-down list.
Ensure you have access to edit the PDF form's underlying JavaScript actions and know the exact page number where your drop-down list is located.
Add a JavaScript Command to Return to the Original Page
Use a simple page-number script to force the application to return to the page where the drop-down list was clicked.
When a template page is spawned, the application naturally shifts document focus to the newly created page. By appending a navigation command at the end of your spawning script, you can immediately snap the view back to your current page before the user notices the transition.
Enter Form Editing mode, right-click the drop-down field causing the issue, and select Properties. Navigate to the Actions tab.
Select your existing 'Run a JavaScript' action that handles the page spawning and click the Edit button.
At the very end of the existing script, add the code: 'this.pageNum = X;'. Replace X with the zero-based index of your current page.
Click OK to save the script, close the properties dialog, and test the drop-down list to ensure the document view no longer jumps.

Edit and Fill PDF Forms Smoothly with WPS Office
Avoid complex script glitches by using WPS Office for your daily PDF document and form processing needs. It offers a straightforward and lightweight PDF editor for seamless reading and form filling.
- 1. Open your PDF: Launch WPS Office and open your interactive PDF form document.
- 2. Fill out the Form: Click on the form fields or drop-down lists to input your data smoothly.
- 3. Save and Export: Once completed, save the document or export it directly to share with colleagues or clients.

Frequently Asked Questions
Why does my PDF jump to another page when I select a drop-down option?
This happens because the drop-down list is programmed to spawn a new page from a hidden template. By default, the application shifts the document focus to the newly created page.
What does zero-based page numbering mean in PDF JavaScript?
In PDF JavaScript, the first page of the document is counted as page 0, the second page is page 1, and so forth. You must subtract 1 from your actual document page number when writing the script.
Does this page jumping issue happen on both Mac and Windows?
Yes, this is a default behavior of the page spawning function in Adobe Acrobat Pro DC and occurs consistently on both macOS and Windows operating systems.
Can I fix this jumping issue without using JavaScript?
If the page spawning itself is triggered by JavaScript, you must edit that same script to include the return command. There is no built-in toggle in the standard user interface to prevent this specific focus shift.




