Validations
By default, all fields comes with Required Validations, just put fRequired
in the fields, and that's it!
Custom Validations
Note that every validator should be a FieldValidator
type.
Sync Validations
Sync validations should return undefined
if everything is ok, or an error message if anything is not ok.
Async Validations
Async validations you should return an CancelableValidator
, that is a tool that allow the validation engine to cancel the validation process. To avoid receiving results that are not welcome anymore, like an user verification, that is triggered as the user types...
Using your validators
Last updated
Was this helpful?