Topic: Multiselect Number of records limitiation
dipeshshah asked 6 years ago
In multiselect only the selected list is visible till 4 selections only.Then it shows "5 options selected"
I have below questions on it,
i) How we can display all selected options? ii) For the text "5 options selected", do we have any option to customhouse the label? e.g. 5 stores selected?
Bartłomiej Malanowski staff pro premium answered 6 years ago
@dipeshshah, this is the part of the code you're looking for:
if (itemsCount >= 5) {
value = "".concat(itemsCount, " options selected");
}
You can change it to fit your needs. For example:
if (itemsCount >= 3) { // To change the limit
value = "".concat("Wybrano ", itemsCount, " opcji"); // To change the text
}
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.7.7
- Device: Computer
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No
Piotr Glejzer staff commented 6 years ago
there is no option for now to do this, if you want to change it you have to do it for your own if you want I can tell you how to do this.
dipeshshah commented 6 years ago
Thanks for the response. Can you please let us know how we can change the "5 options selected" text and change the limit?