In Yii 1.X version we can use afterValidate
inside clientOptions
property of CActiveForm
class, please let me know the correct way to implement the same in Yii2
Yii2 Activeform afterValidate issue
7.1k views Asked by Anandhu Gopi At
1
I just saw these changes. I am very very surprised why core team developers has decided to do so, now the events:
beforeValidate
,afterValidate
,beforeValidateAttribute
,afterValidateAttribute
,beforeSubmit
,ajaxBeforeSend
,ajaxComplete
function were moved to front-end side. They are triggered byjQuery
trigger
function. You can catch the event you need like this: