Here is yii2 drop down list.
<?php echo $form->field($model, 'param1')->dropDownList(
ArrayHelper::map(Model::find()->all(),'param1','param2');
It makes drop Down list with values of param1s and text to choose from of param2s. So you see param2 texts , choose one and corresponding param1 value goes to server.
No my problem is that I want to do the same but show user not only param2 text but I want text to be constructed from param2+param3.
example of what I want.
hidden value___________text
1_____________________alpha
2_____________________bravo
3_____________________lima
hidden value___________text
1_____________________alpha-red
2_____________________bravo-white
3_____________________lima-blue
Is that possible ?