async-validator icon indicating copy to clipboard operation
async-validator copied to clipboard

Is it possible to do conditional validations ?

Open frozenex opened this issue 4 years ago • 2 comments

Can we validate a field based on the result of another field... Make a field required only if another field is required.

frozenex avatar Dec 19 '19 14:12 frozenex

Maybe you can custom validate function for specified field. https://github.com/yiminghe/async-validator/issues/160#issuecomment-563931347

ygj6 avatar Feb 27 '20 06:02 ygj6

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.

ghoshpul avatar May 28 '20 09:05 ghoshpul