validarium icon indicating copy to clipboard operation
validarium copied to clipboard

New feature - conditional validations

Open aizerin opened this issue 6 years ago • 0 comments

I think it would be useful to have conditional validations. Like

validate({
     firstName: { validations: [isRequired, ...], conditions: [isUserPresent, ...]},
})

conditions should get all form values.

Or we can make condition part of validation itself if we extend the API.

aizerin avatar Mar 07 '19 12:03 aizerin