• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

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