Forums Forums Search & Filter Pro Dropbown with multi select

Tagged: 

Viewing 10 posts - 1 through 10 (of 30 total)
  • Anonymous
    #199304

    Hello SFPro,

    I would love to have the option to have a drop down menu with a multi select option.
    Would be awesome for the mobile visitors. Now we can only have 1 option chosen from a drop down menu right?

    Trevor
    #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:

    https://www.screencast.com/t/AQtc4keUuey

    Anonymous
    #199313

    Hello 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
    #199315

    Hi

    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:

    https://github.com/wasikuss/select2-multi-checkboxes

    Anonymous
    #199323

    Thanks a lot Trevor, would love to be kept posted on that! Good luck with the coding!

    Trevor
    #199474

    I 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).

    Anonymous
    #199492

    Hello Trevor,

    Thanks a lot! I am happy you are active with it.
    I am happy to wait for the next development as I think it would be a wonderful addition to the plugin.

    Keep me posted if you have news Trevor and thanks for your effort.

    Trevor
    #199652

    Hi Rudi

    It looks like you will need to wait until V3 comes along, when, with a bit of coding (which we will likely write), this will become possible. It would need a code rewrite to get it working right now. Sorry about that.

    Trevor
    #199714

    Hold the presses. I think I may have gotten it to work. Needs a bit of checking and CSS tidying.

    Anonymous
    #199765

    Hey Trevor, great news!
    I will wait for the testing and see how it works!

    Love it that you are working so hard on it!

Viewing 10 posts - 1 through 10 (of 30 total)