Run validation rule when some conditions are fulfilled
Closed this issue · 1 comments
sendyhalim commented
Like switch that will turn on/off a validation rule.
e.g.
var fn = function () {
return false;
};
var rules = [
{name: 'required', condition: fn}
];
var result = satpam.validate(rules, {});
result.success === true;
sendyhalim commented
Closing this because we've implemented this feature #37