Input field Error Messages for Required Fields

For logins or user registration, Yii’s default is to have an error appear BEFORE submitting the form, ie, just clicking in a “username” box and then immediately clicking in the “password” box would generate a “Username cannot be blank” message.

This is clearly because the fields are "required", which I want. But does anyone know how to change it so that the error message only appears AFTER clicking on the submit button?

Thanks.

Just set validateOnChange to false and validateOnSubmit to true in the CActiveForm.clientOptions.

Great, thanks so much for the fast response, perfect!