Hello, guys. I use this setting:
'enableAjaxValidation' => true,
'enableClientValidation'=>true,
'clientOptions'=>array(
'validateOnSubmit'=>true,
'validateOnChange'=>true,
),
'htmlOptions' => array('enctype' => 'multipart/form-data'),
Ajax validation works fine. Model validation works fine. BUt…
Error messages displayed before the user entered something. It are generating on page refresh, not while the user is typing wrong data in field, as I expected.
Is it a normal, or i got mistake in my code?
And please tell me, what i have to do to change this.