What you could do is just test that one element and if succes (or not succes
depends on what you want) continue. Something like this:

$form = new MyForm();

if ($this->_request->isPost()) {
  $test =
$form->getElement('Elementname')->isValid($this->_request->getPost('Elementname'));
  if($test == true) {
    $form->isValid($this->_request->getPost());
 }
}

(ok some mistakes in the code, but you know what I want to say).

Only problem you got here is that it tests all the validators on that
element (if you have more than one). So how can you check only that
particular validator you wrote for that element:

$test =
$form->getElement('Elementname')->getValidator('NameOfYourOwnValidator')->isValid($this->_request->getPost('Elementname'));

I hope this helps...

-----
visit my website at  http://www.phpscriptor.com/ http://www.phpscriptor.com/ 
-- 
View this message in context: 
http://www.nabble.com/validator-break-chain-on-success-tp21296665p21299387.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to