I have got difficult form in yii2 view, where some fields show or hide. It decide from user field choises, select options in the form. I write this frontend logic with custom jq
You can set your active field using this code: (not active record, activefield exactly)
active record
activefield
$activeField = $form->field($model, 'someField'); $activeField->enableClientValidation=false; $activeField ->enableAjaxValidation=false;