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

cannot create required if custom validator

Open ahmedthinkdifferent opened this issue 4 years ago • 1 comments

i need to check that value is exists if field exists and in another scenario wants to validate that value is exists if field exists with this custom value. { "gender":"male", "age"20 } want to check that age exists if gender exists. second scenario. { "gender":"male", "age"20 } wants to check that age exists if gender is male because females don't like others ask for their ages. Thanks

ahmedthinkdifferent avatar Nov 12 '21 12:11 ahmedthinkdifferent

Use 'check' or 'custom' property on the validator itself?

srcnix avatar Feb 28 '23 07:02 srcnix