Avatar

Level 10

You can use this command to cause the form to validate:

          root node of form.execValidate()

This will cause all of the validations in the form to run it will also return a true or false value based on whether the form passes the validation tests or not. So you can build a test something like this:

     if (form1.execValidate() == false){
           app.alert("There are validation errors!")
     } else {
           app.alert("Validation passed -  you can get the data now")
     }

Hope that helps

Paul