CActiveForm ajax validation only for one element at a time?

Hey everbody,

i have got a question about the CActiveForm ajax validation:

Is it possible to change the behavior of the ajax validation from validating all the elemnts on a change to just validate the field that was just changed?



By default no, you have to implement the javascript by yourself.

You can take inspiration from the yii function.

Yeah it would be good if it could do that.

Another slightly annoying thing is that when the submit button is pressed it doesn’t scroll up to the error summary, or to the first input error.

Thanks for your reply. Just wanted to make sure i don’t miss anything.

Yeap…absoulutely right.