renaud2263 Posted September 20, 2016 Share Posted September 20, 2016 Hello, In my renderForm of a personnal module, I have created a multiple select like that : array( 'type' => 'select', 'label' => $this->l('Spécialités'), 'name' => 'id_specialite', 'required' => true, 'multiple' => true, 'size' => '60px', 'default_value' => $tab_spec_thera, 'hint' => 'Vous pouvez sélectionner plusieurs spécialités en maintenant la touche CTRL enfoncée', 'options' => array( 'query' => $list_spec, 'id' => 'id_specialite', 'name' => 'name' ) ), But in edit mode I would like to preselect the choices of the user. I added the parameter 'default_value' which is an array with the id's of the user as keys. But no preselection. Could you help me ? Thanks a lot. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now