Validating With Profiles
Defining Profiles
this.constraintProfiles = {
"new" = "fname,lname,email,password",
"update" = "fname,lname,email",
"passUpdate" = "password,confirmpassword"
}Validating Profiles
var results = validateModel( target=model, profiles="update" )
var results = validateModel( target=model, profiles="update,passUpdate" )Last updated
Was this helpful?