5 Replies Latest reply on Dec 14, 2017 1:57 PM by owkoepfw231

    File location using event.target.buttonImportIcon

    owkoepfw231 Level 1

      I would like to insert an image by pressing a button and have it automatically insert an image from my downloads folder.



      I have a button field and under action I have it run the following javascript event.target.buttonImportIcon();

      With this javascript when i click the button it brings open another window where i have to browse for the image file before opening.


      Is there a way to modify the javascript such that it will automatically open the image file by coding the address of the file?

      I have tried event.target.buttonImportIcon(":C/Users/..../imagename.pdf") and that did not work.