Selectize.js: How to limit the number of selected options in input field

Created on 17 Apr 2015  路  5Comments  路  Source: selectize/selectize.js

Is there a way to specify the number of selected options you want see in the input and after that number is reached show something like "5 selected".

Thanks!

Most helpful comment

Hi - maxItems and maxOptions only effect the items in the dropdown - I'm looking for a way to limit the number of items in the INPUT itself after selections are made so you don't see 12 items in the input but instead would see "12 items selected"...I don't see any options for this in the documentation but was hoping there was maybe a workaround out there

All 5 comments

Please check the documentation (particularly maxItems).

Hi - maxItems and maxOptions only effect the items in the dropdown - I'm looking for a way to limit the number of items in the INPUT itself after selections are made so you don't see 12 items in the input but instead would see "12 items selected"...I don't see any options for this in the documentation but was hoping there was maybe a workaround out there

Hey, I found this question, because I have the same problem within an R Shiny Dashboard.
It was closed without giving an answer. However it was closed some time ago.
Is there a good solution meanwhile?

Thank you in advance!

Hi. How was this issue/request resolved?
I am looking for the same - to limit the number of selected items in an input box.

Same thing here (actually trying to use it also on a Shiny dashboard too). When the number of selected elements becomes too large and the page starts to fill up this feature would certainly be very useful.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FilipeVoges picture FilipeVoges  路  6Comments

fadhilanugrah picture fadhilanugrah  路  4Comments

tkrotoff picture tkrotoff  路  3Comments

stevelacey picture stevelacey  路  4Comments

djthread picture djthread  路  5Comments