Why PDF JavaScript Functions Do Not Work in Microsoft Edge
Question details
Developers need to handle interactive PDF JavaScript functions that do not work in Microsoft Edge.

- Product
- Microsoft Edge PDF viewer
- Device & OS
- not provided
- Scenario
- An interactive PDF uses JavaScript to update form fields, including a list populated with setItems.
- Observed behavior
- Some PDF JavaScript functions work in Edge, but functions such as setItems do not.
Identify the PDF fields and JavaScript methods your form uses, then test the same file in Edge and Adobe Acrobat Reader. Check whether the form depends on dynamically populated lists or other viewer-specific behavior.
Open the Interactive PDF in Adobe Acrobat Reader
Use a compatible desktop PDF viewer when the form depends on Acrobat JavaScript methods that Edge does not support.
Edge has limited support for PDF JavaScript, so a method working in one viewer does not guarantee that it will work in another. Test the specific script and form in the viewer you recommend.
In Edge, use the PDF toolbar's Save or Download button to save the file to your device.
In Adobe Acrobat Reader, select File > Open and choose the downloaded PDF.
Interact with the fields that trigger the script and check whether the list populated by setItems displays the expected options.
Add instructions next to the PDF download link asking users to open the file in Adobe Acrobat Reader if the interactive fields do not work in their browser.

Design the PDF for the Target Viewer's Capabilities
Use simpler form behavior when users need to complete the PDF in Edge or another viewer you do not control.
View PDFs and Work with Office Files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for viewing PDFs and working with Office documents. Its format compatibility helps make the move from Microsoft Office straightforward. It does not fix Edge's PDF JavaScript limitations; test interactive forms in their intended viewer.

Frequently Asked Questions
Why does setItems work in Reader but not in Edge?
PDF viewers implement JavaScript features differently. Edge has limited PDF scripting support, so a form field method such as setItems may work in Adobe Acrobat Reader but not in Edge.
Can I make a dynamic dropdown work without JavaScript?
If the options do not need to change dynamically, use Acrobat's Prepare a form tool to define fixed choices in the dropdown field's properties. Save the file and test it in Edge.
How do I open a PDF in Acrobat Reader instead of Edge?
Use the Save or Download button in Edge's PDF toolbar, then open Adobe Acrobat Reader and select File > Open to choose the saved file.
Will the Adobe PDF Embed API run every PDF script?
Not necessarily. Review the API's current documentation and test the exact form and JavaScript methods you use before relying on it for online viewing.




