Hi,
its a question, not an actual issue. but in my case no. of fields being too many it makes an issue for me to cutdown the not-required things from my url.
<?= $form->field($model, 'product_type_id')->dropDownList(ArrayHelper::map(ProductTypes::find()->all(), 'id', 'name'), ['multiple' => true]); ?>
the dropdown with multi-select is generated properly and working fine. but when submitted,
url decoded as
myForm[product_type_id]=&myForm[product_type_id][]=1&myForm[product_type_id][]=2
the first myForm[fieldName]=& the desired outcome? just curious to know.
though it doesn't have any issue, as the later part over-writes the 1st blank.
has anyone else noticed this ?
Hi, its a question, not an actual issue. but in my case no. of fields being too many it makes an issue for me to cutdown the not-required things from my url.
<?= $form->field($model, 'product_type_id')->dropDownList(ArrayHelper::map(ProductTypes::find()->all(), 'id', 'name'), ['multiple' => true]); ?>
the dropdown with multi-select is generated properly and working fine. but when submitted,the query params being generated are like below
the first myForm[fieldName]=& the desired outcome? just curious to know. though it doesn't have any issue, as the later part over-writes the 1st blank. has anyone else noticed this ?