For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 ONLY

  • excludeFields : The fields to exclude in the validation

prc.results = validate(
    target: user,
    includeFields: "username,password",
    excludeFields: "id"
);

Last updated

Was this helpful?