how to enable client side validation in a form which is created using multiple models (5 models)? ajax validation works fine but client side validation does not work…thanks in advance.
how to enable client side validation in a form which is created using multiple models (5 models)? ajax validation works fine but client side validation does not work…thanks in advance.
I had two models in same form, this worked form me:
'enableAjaxValidation' => true,
'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => true,'afterValidate' => 'js:function(form,data,hasError){
send(form,data,hasError);
and in your onCreate add
$this->performAjaxValidation(array($model1,$model2));
I hope it helps.