Solarmd
(Neagamaxim)
1
Hello,
By default, if form Ajax validation is enabled, the field gets validated "onfocusout". Is there any way to disable this behavior for a specific form?
Here is the video to get a better of what I mean:
http://www.youtube.com/watch?v=nHdKHsEAIds
Thank you in advance!
Keith
(Kburton)
2
Try disabling validateOnChange in the clientOptions array:
http://www.yiiframework.com/doc/api/1.1/CActiveForm#clientOptions-detail
You may wish to enable validateOnSubmit.
alirz23
(Ali Raza)
3
here you can set enableAjaxVAlidation to false
<?php $form = $this->beginWidget('CActiveForm', array(
'id'=>'user-form',
'enableAjaxValidation'=>true, // right here
'enableClientValidation'=>true,
'focus'=>array($model,'firstName'),
)); ?>
Solarmd
(Neagamaxim)
4
Exactly what I needed! Thank you so much!