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 validationValidations can be passed as an array. Currently, required
, email
and number
are available by default.
#
Adding validatorsYou can also add more validators: