I am saving the values in the form 10,20,30,40 into the database.
In edit page i having HelperForm as below.
array( 'type' => 'select' , // This is a <select> tag. 'label' => $this->l('Companion Model Nos:') , // The <label> for this <select> tag. 'desc' => $this->l('Choose Companion Model Numbers') , // A help text, displayed right next to the <select> tag. 'name' => 'companion_model_nos[]' , // The content of the 'id' attribute of the <select> tag. 'required' => true , // If set to true, this option must be set. 'multiple' => true , 'class' => 'chosen' , 'options' => array( 'query' => $modelNoOptions , // $options contains the data itself. 'id' => 'id_option' , // The value of the 'id' key must be the same as the key for 'value' attribute of the <option> tag in each $options sub-array. 'name' => 'name' , // The value of the 'name' key must be the same as the key for the text content of the <option> tag in each $options sub-array. ) ) I am not getting already saved values selected in select tag.
Please help me!