1 Reply Latest reply on May 31, 2011 5:06 AM by david-does-dobe

    Running validation before the 'save as' script

    david-does-dobe

      Hi

       

      I'm looking for a steer on how to run form validation before implementing the 'Save as' script - is this even possible??

       

      Basically I want the save as script to run in the click event of my newly formed save button only if the validation script returns a positive value i.e. all mandatory fields are completed, I've used the script below:

       

      if

       

       

      (form1.execValidate()== "false")

      {

      app.execMenuItem("SaveAs");

      }

       

      Any chance someone could point me in the right direction or am I barking up the wrong tree?

       

      Thanks