Avatar

Correct answer by
Level 10

You can execute all of the validations on a form with a single command and it wil return a true if one of the validations fails or a false if there are no validation errors. So on the button that the user clicks (it needs to be a regular button) you could write code like this on the click event:

if (form1.execValidate() == false){

     app.alert("You have not filled out all of the required fields....")

} else {

     put your print command here......

}

This assumes that your root node in the form is form1 (look at the top level node in the hierarchy view).

Hope that helps

Paul

View solution in original post