Customise CHtml errorSummary

For example when there are input errors I want the errorSummary container to just provide a notification that there are errors in the form (and not list all the attributes that have errors). Is this possible to do?


Try such code:

<?php if($model->hasErrors()): ?>

	<div>Form has errors.</div>

<?php endif; ?>

Cheers mate, that works but not in ajaxValidate mode though. It would be good if there was an option in errorSummary that would let us hide the errors. I’ll put in a request for this.

You may add handler to afterValidate and show/hide message.

Did you turn on ajaxvalidation ?? couse ajax validation form works perfect