How to make script "event.target.buttonImportIcon();" work independent of browser or platform
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
