I want to add a multi select drop down to my gc add form.i could generate a single select drop down using set relation.but i dont know how to make it multi select drop down.please help,thank you!
$crud->set_relation('color','tbl_color','color');
with this i could get a single selection drop down list.
Grocery CRUD multi select drop down list
2.9k views Asked by HPM At
2
There are 2 answers
0
On
checkout the documentation for relation_n_n.
http://www.grocerycrud.com/documentation/options_functions/set_relation_n_n
add the following to your code after
$crud->set_relation
,Hope this will help, because its working fine for me.