I\'m wondering if any Yii2 experts can help me understand how best to work with ajax forms combined with Yii ajax validation. I think I can explain the issue without taking you
You should set up validationUrl
with a different URL compared to the URL that you are submitting the form to. In this way you can have the validation function that would validate and return the return ActiveForm::validate($model);
and the normal submit form that does something else.
You can read more about validationUrl
here: