13 Replies Latest reply on Nov 9, 2017 9:48 AM by mohunu96546120

    Javascript support on mobile

    Michael Peters Level 1

      Does anyone know which PDF viewer on mobile currently has the most support for the javascript object model. I am particularly interested in forms support for functionality such as showing/hiding fields, validation and formatting. Adobe offerings are really inadequate in these areas.

        • 1. Re: Javascript support on mobile
          Joel_Geraci Adobe Community Professional

          PDF Expert by Readdle has pretty extensive JavaScript support but it's not free.

           

          PDF Expert by Readdle on the App Store

          • 2. Re: Javascript support on mobile
            Michael Peters Level 1

            I have seen this, but I understand this is only available on iOS. Does anyone know about a viewer for iOS and Android?

            • 3. Re: Javascript support on mobile
              Joel_Geraci Adobe Community Professional

              As limited as Adobe Reader is on Android compared to the desktop versions, it actually is the most capable. If you need to recommend a single viewer for mobile. It's Adobe Reader.

              • 4. Re: Javascript support on mobile
                Michael Peters Level 1

                It may be in some areas, but I can't recommend it without the forms support that I mentioned at the beginning of the thread. On further investigation it seems as if the Foxit PDF viewer supports far more of the JavaScript object model and it is available on iOS and Android. I wish Adobe would try a little harder to make the Portable Document Format (PDF) portable across its various offerings. This lack of mobile support for simple operations in forms through JavaScript such as showing and hiding fields is making PDF forms useless in certain industries.

                • 5. Re: Javascript support on mobile
                  Joel_Geraci Adobe Community Professional

                  Be careful with the Foxit JavaScript. Even on the desktop machines, it gets a lot of stuff wrong. Foxit is just not a general solution for forms. You'll need to test them thoroughly.

                   

                  A better solution is to add a "warning" layer to the PDF that only an Adobe viewer on desktop can hide. That way the user knows they shouldn't use the viewer they're in if they see the warning.

                  • 6. Re: Javascript support on mobile
                    Michael Peters Level 1

                    So basically there is no worthwhile solution for PDF forms on millions of users devices, so lets forget PDF forms and move to another technology. That is exactly what is now happening in the Insurance industry and as an Adobe Partner it has lost us a lot of money.

                    • 7. Re: Javascript support on mobile
                      gkaiseril MVP & Adobe Community Professional

                      Many suggest using HTML ver 5.

                      • 8. Re: Javascript support on mobile
                        Joel_Geraci Adobe Community Professional

                        Honestly Michael, using a PDF form to collect data on a mobile device other than a fairly large tablet is a horrid experience regardless of the PDF viewer. That does not make PDF forms obsolete, it makes them a record of the data entered. The fact that the form is presented as PDF on the device adds nothing to the experience of filling it. It's far better to collect the data in responsive HTML 5, submit the data to a server, populate the PDF and show the result to the user to verify that it looks correct.

                         

                        Yes - It's a more complicated workflow but it works. And it works consistently across devices and platforms.

                         

                        Now, before anyone jumps on me about translating the validation scripts, formatting, and calculations consider that the Datalogics PDF Java Toolkit can run all of those on the server as well as generate appearances the same way as Acrobat does and using Adobe technology to do it.

                         

                        There is... literally... nothing stopping a developer from creating a server based PDF filling solution that can proxy Acrobat... not just Reader... Acrobat.

                         

                        It's just engineering effort. The technology is all there. If I had the funding to create such a tool, I'd have done it already.

                        • 9. Re: Javascript support on mobile
                          Michael Peters Level 1

                          I understand what you are saying, however immediately sending up to a server is not always an option. In the insurance market where a claim form is being filled it may be outside an area for an internet connection. You really need to be able to store the data locally and maybe submit later. Typically the devices would either be PCs or large screen mobiles such as iPads etc.

                          • 10. Re: Javascript support on mobile
                            Joel_Geraci Adobe Community Professional

                            The Microsoft Surface is a perfect solution for those applications. It runs Windows 10 and Acrobat Pro DC perfectly. I love my iPads - they're all over my house but I'd never recommend them for enterprise class applications.

                            • 11. Re: Javascript support on mobile
                              Michael Peters Level 1

                              I agree - I am using one now, but it is not commercially viable and the clients want to be able to use mobile devices.

                              • 12. Re: Javascript support on mobile
                                Joel_Geraci Adobe Community Professional

                                Understood... But I'd like to play The Legend of Zelda: Breath of the Wild on my XBox One... but I can't. That doesn't mean that Microsoft or Nintendo are doing anything wrong or that either device is not commercially viable; both are wildly successful. It just means I need to match my requirements to the right device.

                                • 13. Re: Javascript support on mobile
                                  mohunu96546120 Level 1

                                  I agree with you michael that the Adobe Reader Android App lacks this basic function of Show/Hide field which renders most of our existing forms unusable in mobile environment.  If there could could have been a work thru in Acroforms, that would have been welcomed.