The onsubmit event of the CActiveForm under yii, the solution for the subsequent verification of the js function!

The current requirement is to execute a function after all the models in the form have been verified, so that some subsequent processing operations!

beginwidget(caactiveform, array(
ID=>question_order-_form-form,
EnableAjaxValidation=> true,
EnableClientValidation=> true,
clientOptions=> array(
ValidateOnSubmit=> true,
AfterValidate=>js:submit_checkout,
,
HtmlOptions=> array(
autocomplete=>off
)
)); ?>
The actual rules of the js function are:
if (hasError == false) {
return false;
} else {
return true; // If it returns true, the form submission operation will continue!
}
