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.
prc.results = validate( target: user, fields: "login,password" );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 ONLYexcludeFields: The fields to exclude in the validation
prc.results = validate(
target: user,
includeFields: "username,password",
excludeFields: "id"
);Last updated
Was this helpful?