Other PDF Issues

Fix Acrobat JavaScript Hanging Between PDF Form Fields on Windows

Huma Ashraf ChHuma Ashraf Ch Nov 19, 2026 868 views

Question details

Prevent Acrobat from hanging when a PDF form script moves focus between fields on different pages.

Fix Acrobat JavaScript Hanging Between PDF Form Fields on Windows
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the field properties

In Acrobat, open the PDF, choose Prepare a form, and open Properties for the field that triggers navigation.

2
Edit the JavaScript action

On the Actions tab, select the existing Run a JavaScript action that calls the navigation function, then click Edit.

3
Set delay to false

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.

4
Save and test navigation

Click OK to save the action, save the PDF, and test the affected fields on Windows, including navigation between pages.

Disable Delayed Updates Before Calling the Navigation Function
If Acrobat still hangs: Check that the document-level function exists and that the same PDF and fields are being tested across devices. Setting delay to false may help, but it does not address every possible script or focus-event loop.
Free Microsoft Office alternative

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.

Open and fill ordinary PDF forms without relying on Acrobat for basic form workCompatible with Microsoft Office formats including DOCX, XLSX, and PPTXUse a familiar interface for documents, spreadsheets, presentations, and PDFsMove existing compatible files into a lightweight office suite
microsoft office alternative - wps office

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.