Skip to main content
Known Participant
October 7, 2017
Question

javascript not support in mobile version iOS adobe dc :(

  • October 7, 2017
  • 1 reply
  • 1520 views

i add some java script code in my program but in my pc work perfect, when i move this in mobile iOS app javascript code not working! Why??

This topic has been closed for replies.

1 reply

Karl Heinz  Kremer
Community Expert
Community Expert
October 7, 2017

How much JavaScript - or if it's supported at all - depends on what PDF viewer you are using on your mobile device. Even Adobe's own Reader has only very limited support for JavaScript. The default PDF viewer on iOS does not support JavaScript (and many other features you often find in PDF files) not at all. Take a look here for information about what's supported in Adobe's mobile Reader:

JavaScript APIs and Forms — Enterprise Guide for Acrobat on Mobile Devices

Participating Frequently
January 24, 2018

Karl, I'm not sure you will see this as it is month after the original post, but I'm running into the same problem. according to the mobile API reference, I believe that my basic code should work. Its just a button that has the code as following:

this.getField("number").value = "01"

It seems that the API reference is not accurate. I have tried my same code in multiple different mobile pdf readers, on both android and apple.

Joel Geraci
Community Expert
Community Expert
January 24, 2018

The API Reference is accurate. It's specific to the Adobe viewers, not PDF in general.

Most mobile PDF viewers don't support JavaScript at all. I've tested the code you show above and it does run on the Adobe Reader on iOS and Android and PDF Expert by Readdle on iOS but that's about it.