validators schema section
Level: beginner
Validators are functions that check whether the ViewModel
attribute value is correct. For example, whether the record field value matches the specified conditions. View an example of validator usage: Implement the field value validation on a page
View the base validators that Creatio provides below.
Base validators
crt.Required
Flags the field as required.
crt.MinLength
Sets the minimum allowed string length.
Parameters
minLength |
| The minimum allowed string length. |
crt.MaxLength
Sets the maximum allowed string length.
Parameters
maxLength |
| The maximum allowed string length. |
crt.Min
Sets the minimum allowed value.
Parameters
min |
| The minimum allowed value. |
crt.Max
Sets the maximum allowed value.
Parameters
max |
| The maximum allowed value. |
crt.EmptyOrWhiteSpace
Flags the field as required. Field values must not consist of spaces only.