Skip to main content
FransTimmermans
Participant
November 27, 2016
Question

How to make script "event.target.buttonImportIcon();" work independent of browser or platform

  • November 27, 2016
  • 1 reply
  • 1324 views

I am constructing an Adobe form with text field to be filled in and one field where the user is able to insert a photo.
I am using the script " event.target.buttonImportIcon(); "  and that does work if the form is downloaded and opened with acrobat reader dc.
I also works with the Chrome browser when the internal pdf viewer is switch off. (then Acrobat Reader DC is triggered as this is my basic pdf program on my PC)

I asked several people to test the form and also on a different platform (iPad iOS and MAC iOS) and Android (smartphone)

The results are:
- on a MAC: can fill in the text fields, but can not insert a photo

- on a smartphone: shows as common pdf, no fillable fields.

- on an iPad: commmon pdf, no fillable fields

- standard chrome or IE/ Edge: text field can be filled, no photo insertion.

So my question is:
Is there a jave script that can be used in the action part of the button field, next to the one in the header: event.target.buttonImportIcon(); or additional to that one to make the photo insert work, independent of the browser, platform and online on the screen. (so not to download it first)

I welcome your suggestions, Thanks in advance

Frans

    This topic has been closed for replies.

    1 reply

    Legend
    November 27, 2016

    Certainly not. The Software you are using is by all different companies. Each company decides what to do it not do with JavaScript. Your survey leaves out the critical info of what software is in use. On Mac for instance Acrobat Reader can do this IF YOU USE IT.