Fix Acrobat JavaScript Hanging Between PDF Form Fields on Windows
Question details
Prevent Acrobat from hanging when a PDF form script moves focus between fields on different pages.

- Product
- Adobe Acrobat
- Device & OS
- Windows
- Scenario
- A field-level JavaScript action calls a document-level function to find and focus the next matching field.
- Observed behavior
- Acrobat may hang while moving focus between form fields across pages.
Open the affected PDF in Adobe Acrobat and identify the field action that calls the document-level navigation function. Confirm that Acrobat JavaScript is enabled in Edit > Preferences > JavaScript.
Disable Delayed Updates Before Calling the Navigation Function
Use this change when a field-level script calls a document-level function to move focus to another field.
In Acrobat, open the PDF, choose Prepare a form, and open Properties for the field that triggers navigation.
On the Actions tab, select the existing Run a JavaScript action that calls the navigation function, then click Edit.
Immediately before the existing function call, add this line: this.delay = false; For example, follow it with jumpToNextField("a"); using the pattern appropriate to your form.
Click OK to save the action, save the PDF, and test the affected fields on Windows, including navigation between pages.

Work With PDFs and Office Files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with PDFs and Office documents. Open compatible files to make the transition straightforward; WPS does not fix Acrobat JavaScript hangs or guarantee the same PDF script behavior.

Frequently Asked Questions
Where should I add this.delay = false?
In Acrobat, open Prepare a form, select the triggering field's Properties, and edit its existing Run a JavaScript action on the Actions tab. Add the line immediately before the navigation function call.
Does the navigation function have to be named jumpToNextField?
No. Use the name and arguments of the document-level function already defined in your PDF. The example jumpToNextField("a") applies only if that function and pattern are appropriate for your form.
How do I check whether Acrobat JavaScript is enabled?
In Acrobat on Windows, open Edit > Preferences > JavaScript and check the Acrobat JavaScript setting. Test the form again after enabling it if permitted.
Why might the form still hang after changing the delay setting?
The hang could involve the navigation function or a focus-event loop. Check the field actions and document-level script, and compare the same PDF and fields when testing on another device.
Will WPS Office run the same Acrobat form scripts?
Do not assume Acrobat-specific JavaScript will behave the same way in WPS Office. Use Acrobat to troubleshoot and test the scripted navigation; WPS can be an alternative for ordinary PDF and Office file work.




