mikeerickson / validatorjs

A data validation library in JavaScript for the browser and Node.js, inspired by Laravel's Validator.
https://www.npmjs.com/package/validatorjs
MIT License
1.77k stars 280 forks source link

required_if #74

Closed chanlito closed 8 years ago

chanlito commented 8 years ago

can someone tell me how the required_if works?? i can't find the example on the doc. thanks in advance.

iamdtang commented 8 years ago

See examples here: https://github.com/skaterdav85/validatorjs/blob/master/spec/required_if.js

chanlito commented 8 years ago

Thanks again

iamdtang commented 8 years ago

I just added this rule to the docs