Do not validate onfocusout

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!

Try disabling validateOnChange in the clientOptions array:




http://www.yiiframework.com/doc/api/1.1/CActiveForm#clientOptions-detail



You may wish to enable validateOnSubmit.

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'),

)); ?>

Exactly what I needed! Thank you so much!