8 Replies Latest reply on Dec 21, 2017 4:55 PM by Thom Parker

    Trusted function still giving permission errors.


      I wrote a function in a js file in the C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Javascripts folder.


      mySaveAs = app.trustedFunction(function(myForm, path)



           var myForm = event.target;

           return rtn = myForm.saveAs(path);




      I added a button to the form which calls.

      mySaveAs(this, saveAsFile);


      The console showsNotAllowedError: Security settings prevent access to this property or method.

      App.beginPriv:15:Field Button1:Mouse Up


      Is there something I am missing or doing wrong?