Dropdown with multiple selections

mariluzrm

Member
Hello.

How does Dropdown with multiple selections work?

If I select more than one option it saves the value 0 in the database, but I suppose that this should not be the case, right?

Thanks
 
Fabrik has probably created a repeat table "your_main_table_xx_repeat" for storing multiselect values.
 
Well, to be exact, the new table Fabrik generates for multi-selects with databasejoins is named following the convention "tablename_repeat_elementname".

So, if the table holding your multi-select is named "jos_mytable" and the element column is named "eee", the Fabrik-generated table will be named "jos_mytable_repeat_eee".

Please check again?
 
Last edited:
I have checked it. There is no table with the name *_repeat_*, and when I select on dropdown only one option then it's saved (and I can see the value in phpmyadmin), but when I select more than one options it's saved 0 (in phpmyadmin) and in dropdown no value is marked.
 
You mean a dropdown element with multi selection (not a dbjoin with multiselect, which will create the repeat table)?
A multiselect dropdown with more than one selected value is stored as ["2","3","10"].
So no idea what is going on on your site. The column type must be text.
 
It's up to you. Dropdown multi and checkbox are nearly the same (sames storage in the DB), you can also use a dbjoin rendered as checkbox or as multiselect.
With both multiselects you can enable "Enhanced dropdowns" (you need to enable it in Fabrik options, too) which will give some "tag" like display.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top