8 Replies Latest reply on Sep 20, 2017 3:50 PM by try67

    set document-level action

    four80eastfan

      I'm fooling around with document-level actions and can't seem to get it working. Below is my code:

       

      var didSave = function()
      {
         console.println("saved!");
      };
      
      this.setAction("DidSave", didSave);
      

       

      This is the error that I get in the console:

      TypeError: this.setAction is not a function

      47:Folder-Level:App:will_save.js

       

      Using Acrobat X Standard. Any help you can provide is appreciated!