Yii2 requires us to define which attributes are active for each scenario.
It would be ideal if the form builder could skip attributes that are not active for the current scenario.
Alternatively this could be a boolean option activeOnly for the form builder (and if you default it to false) it would not affect backwards compatibility.
I can make a PR if you think this is a nice feature.
Yii2 requires us to define which attributes are active for each scenario.
It would be ideal if the form builder could skip attributes that are not active for the current scenario.
Alternatively this could be a boolean option
activeOnly
for the form builder (and if you default it tofalse
) it would not affect backwards compatibility.I can make a PR if you think this is a nice feature.