Closed rwb196884 closed 8 months ago
I have an object
{ a: number, b: number }
How do I write a validaton rule to require a + b <= 100?
a + b <= 100
@rwb196884 you could use a custom rule to achieve this.
this.ruleFor('a').must( (a, model) => a + model.b <= 100 );
Hi @rwb196884, the answer provided by @bohoffi is correct (thank you!)
I have an object
How do I write a validaton rule to require
a + b <= 100
?