ustarts
(Ustarts)
February 19, 2013, 12:59pm
1
I have a problem with Yii ClientValidation. In case there is more than one form on the page, only first form gets validation. Every form has an unique ID:
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
'action'=>'/action/add_menu_group',
'id'=>$id,
'enableClientValidation'=>true,
'clientOptions'=>array(
'validateOnSubmit'=>true,
),
)); ?>
ustarts:
I have a problem with Yii ClientValidation. In case there is more than one form on the page, only first form gets validation. Every form has an unique ID:
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
'action'=>'/action/add_menu_group',
'id'=>$id,
'enableClientValidation'=>true,
'clientOptions'=>array(
'validateOnSubmit'=>true,
),
)); ?>
Hi,
Please post the code here for better understanding…
use second form using renderPartil, give different id to each form… this is working for me…
Thanks,
Gaurish