Validation
You can add validations to each field and pass validations using options in the createFormModel API. Field validations can be defined in multiple ways.
Default way of adding validation#
Validations can be passed as an array. Currently, required, email and number are available by default.
Adding validators#
You can also add more validators: