Validating Custom Fields
You can also tell the validation manager to ONLY validate on certain fields and not all the fields declared in the validation constraints.
1
prc.results = validateModel( target=user, fields="login,password" );
Copied!
This will only validate the login and password fields.

Custom Includes/Excludes

You can also use the following arguments:
    includeFields : The fields to include in the validation ONLY
    excludeFields : The fields to exclude in the validation
1
prc.results = validateModel(
2
target=user,
3
includeFields="username,password",
4
excludeFields="id"
5
);
Copied!
Last modified 1yr ago
Copy link