Topic: Multiselect Number of records limitiation

dipeshshah free asked 5 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?


Piotr Glejzer staff commented 5 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 free commented 5 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?



@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
}

dipeshshah free commented 5 years ago

Thanks for the help



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: 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