Skip to main content
Version: 8.0

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 use in a separate article: Implement the field value validation on a page

View the base validators that Creatio 8 Atlas provides below.

Base validators

crt.Required

Flags the field as required.

crt.MinLength

Sets the minimum allowed string length.

Parameters

minLength

INTEGER

The minimum allowed string length.

crt.MaxLength

Sets the maximum allowed string length.

Parameters

maxLength

INTEGER

The maximum allowed string length.

crt.Min

Sets the minimum allowed value.

Parameters

min

INTEGER

The minimum allowed value.

crt.Max

Sets the maximum allowed value.

Parameters

max

INTEGER

The maximum allowed value.

crt.EmptyOrWhiteSpace

Flags the field as required. Field values must not consist of spaces only.