Forums › Forums › Search & Filter Pro › Size of Multi Select box
Tagged: multi select
- This topic has 5 replies, 2 voices, and was last updated 4 years, 8 months ago by Trevor.
-
Anonymous(Private) March 3, 2020 at 10:15 pm #235488
Hello, when i use the drop-down method in the search form ui to choose a category, on front end it shows the user about 20 items for choosing, wenn it is at the top of the side, and he can scroll up and down for more items. When it is in the middle of the screen, the drop down menu shows him about 10 items for choosing. Ok! When i set Multi-Select in the search form ui to choose a category, the box shows the user on front end only 4 items in the menubox. He can scroll up and down, but the little box with only 4 showed items makes navigation a little bit laborius. Is it possible to increase the multi-Select-Box from 4 showed items to 10 or more like the drop down box? Thanks for help, regards Georg
Anonymous(Private) March 4, 2020 at 9:06 pm #235573Hello Trevor, i changed combobox script to Select2 and saved changing, but nothing happened. The combo-box looked like before changing. In Multi-Select there are still only 4 items showed, not more. I use divi actual version. I like to use multi select in a similar way like drop down menu for choosing categories. I use about 100 categories for choosing art-workshops on my page “www.talking-art-toolbox.de”, but in drop down mode, which looks good, i can´t select more than one category. Thanks for help, regards Georg
Trevor(Private) March 9, 2020 at 2:01 pm #235924With a Select Multiple box, 4 is the default that will show. You could use CSS to set the height of the select, but this can give variable results across browsers, but is easy to do, for example:
.searchandfilter[data-sf-form-id="1255"] .sf-field-category select { height: 200px; }
The more difficult method is to use JavaScript to add a ‘size’ attribute to the select, where the number is the number of rows wanted.
Be aware that, if the actual number of terms available is insufficient, the control may have empty space.
-
AuthorPosts