Disable AJAX validation of a certain field?


How do I disable AJAX validation of certain fields from within the view. I’m sure there should be a param to the field that will do that but I can’t seem to find it.

I need this to disable CAPTCHA validation and in the near future - to disable it for file upload fields.

Currently I’ve achieved this from within the controller - listing only the attributes to the validate method that I want validated but this is ugly. I have 10 fields, I’ve listed 9 of them in the controller and for every field change this is another place to fix.

Thank you!

You can create a scenario for ajax validation, and specify wich validator should occur with ajax validation

How about this: http://www.yiiframework.com/doc/api/1.1/CActiveForm#error-detail