3 Replies Latest reply on Jun 29, 2015 9:47 AM by jasotastic81

    javascript if statement

    herveys81193086

      Hello,

       

      I am not good at javascript so I got this button "Save as..." and a javascript messagebox comes up asking if they secure the document before save it:

       

      xfa.host.messageBox("WARNING", "Did you secure the document prior saving it?", 3, 2);

       

      If they say 3 (yes), the javascript code should be apply: app.execMenuItem("SaveAs");

       

      If 2 (no), go back to the document. Anyone can help?

       

      Thanks!