Unless the webapp end users are nerds, you’ll want to keep them
I’ve seen some people submitting forms and thinking the click of the button is enough: ie they don’t wait for the submission results, and they don’t pay attention to eventual validation problems. Eventually, I added alert and confirm boxes on submit, before validation, and after validation / before save
PS at the same time, huge form with 50 fields and related models in 7 steps
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'some-form',
'enableClientValidation'=>false,
'enableAjaxValidation'=>true,
'clientOptions'=>array(
'validateOnSubmit'=>true,
'validateOnChange'=>false,
'beforeValidate'=>"js:function(form) {
alert('Going to validate. Please click Ok and wait few moments.')
return true;
}",
'afterValidate'=>"js:function(form, data, hasError) {
if(hasError) {
alert('We have detected some input errors and has not saved your data. Please click Ok to correct them.');
return false;
}
else {
if(confirm('We have validated your input and we are ready to save your data. Please click Ok to save or Cancel to return to input.'))
return true;
else
return false;
}
}",
)
)); ?>