async-validator
async-validator copied to clipboard
Is it possible to do conditional validations ?
Can we validate a field based on the result of another field... Make a field required only if another field is required.
Maybe you can custom validate function for specified field. https://github.com/yiminghe/async-validator/issues/160#issuecomment-563931347
This is a nice feature to have. It is very much common scenario in a form that fieldA is required if fieldB is required or fieldB has a certain value.