Forums › Forums › Search & Filter Pro › Dropbown with multi select
Tagged: V3
- This topic has 29 replies, 3 voices, and was last updated 4 years, 10 months ago by Anonymous.
-
Trevor(Private) January 18, 2019 at 8:58 am #199305
You can have multi-select.
I would first change the combobox script to select2. In the WP Admin -> Search & Filter -> Settings, look for the Combobox script and try setting that to Select2. Here is a screenshot:
https://www.screencast.com/t/g58SM1O9
Then, in the field settings, see this screenshot:
Anonymous(Private) January 18, 2019 at 9:30 am #199313Hello Trevor,
Thank you for your quick response.
It is almost what I would like, but I would love to have a dropdown like this website:
https://personato.nl/vacatures/zoeken
With dropdown and checkbox combined, so you can have multi select at a dropdown menu.
Trevor(Private) January 18, 2019 at 9:49 am #199315Hi
This is something I have been thinking about for some time now. I really need to have a few hours free to try this out. I will give it a go tomorrow (Saturday).
I already worked out how to add Select2 to all dropdowns (not just combobox), but I think I can figure out how to use this also:
Trevor(Private) January 21, 2019 at 11:38 am #199474I haven’t forgotten you Rudi. I tried to get this working using Select2 (as we include this with our plugin anyway), using this plugin for Select2:
https://github.com/wasikuss/select2-multi-checkboxes/tree/amd
However, the bit I am stuck on is this. when you click the select box to open the options dropdown, our plugin then causes the options to be made at that point (it injects the div right at the bottom of the page HTML). What I need to do is intercept that code and add to the HTML of the dropdown box a div around the label seen, so that I can then use CSS to add the checkbox.
I have left a note with Ross, our plugin developer, to see if he can suggest how I proceed (if what I am trying is possible, or even if using the select2-multi-checkboxes plugin is needed at all).
-
AuthorPosts