Closed katag9k closed 8 years ago
<?php $model->category_id = 7; echo $form->field( $model, 'category_id' )->widget( SelectizeDropDownList::className(), [ 'clientOptions' => [ 'persist' => false, 'create' => true, 'options' => Category::getOptionArray(), 'valueField' => 'id', 'labelField' => 'category', 'searchField' => [ 'category' ], 'maxItems' => 1, ], ] ); ?>
When updating, the form is not pre-populated with the correct category.
You need to set the 'items' attribute
Of course... Thank you
When updating, the form is not pre-populated with the correct category.![screen shot 2016-05-26 at 4 52 13 pm](https://cloud.githubusercontent.com/assets/3019634/15589801/5c107290-2362-11e6-8f42-6fec7e647844.png)