Answer the question
In order to leave comments, you need to log in
How to display a hidden field depending on the selected value in the list?
there is a field of type dropDownList. the data in it is deduced from a DB.
<?= $form->field($model, 'id_education_stage')->dropDownList(
\yii\helpers\ArrayHelper::map(\app\models\EducationStage::find()->all(), 'id', 'name'),
) ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question