There is way by which you can do it.

[SERVER SIDE VALIDATION]

step 1 : <input type="checkbox" name="custid['.$i.']" id="custid" 
value="'.$row->CUSTOMER_ID.'" /> - make it using for loop
step 2 : Post it
step 3 : Do validate using for loop
           sudo pattern :     $i=0;
                                  
foreach($this->getRequest()->getPost('custid') as $id )
                                  {
                                           if ( $id with some condition )
                                               {
                                                    // if error
                                                    $message[$i] = "Message
";
                                               }
                                  } 
step 4 : send it to view, sudo ->  $this->view->messages = $messages;
step 5 : make a helper to print error message array.


-- 
View this message in context: 
http://n4.nabble.com/custom-error-messages-for-Zend-Form-Multicheckbox-tp1565393p1594571.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to