The isValid function also takes an optional 'context' parameter which is an array of all the values submitted. public function isValid($value, $context = null) { if(($context['box1'] + $context['box2'] + $context['box3']) > $someValue) { // error } }
Any mention of this seems to have vanished from the docs, however - I'll file a bug report. iceangel89 wrote: > > how can i validate more that 1 inputs at once? eg. > > i want to validate that the sum of 3 text boxes cannot be more than some > value from the db > -- View this message in context: http://www.nabble.com/Validating-based-on-more-than-1-inputs-tp23354455p23358125.html Sent from the Zend Framework mailing list archive at Nabble.com.