Validation

You can setup validation on form or field level using the following propertes:

Field validation

Field level validation is useful for simple validation of single field value (e.g.: field is valid email). The validation function receives value as first argument and expects validation message to be returned if value is not valid.

Example
View Source
Edit In Stackblitz  
Change Theme:

FieldArray validation

Field array level validation is useful for simple validation of arrays (e.g.: array have at least one record). The validation function receives value as first argument and expects validation message to be returned if value is not valid.

Example
View Source
Edit In Stackblitz  
Change Theme:

Form validation

Form validation can be used for complex validation between more fields, where using the field level validation is not convenient.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?