cancel
Showing results for 
Search instead for 
Did you mean: 

How can I implement multiselect component with "Select All" option?

nikyinform
Champ on-the-rise
Champ on-the-rise

I am using alfresco/forms/controls/MultiSelectInput component in my page. There is no option to select all items.

Is there way to do with MultiSelectInput Component or else?

2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator

AFAIK there is no such option for good reason - you can simply add a CheckBox widget with the label "select all" and have the multi select input conditionally disabled. So either the user explicitly selects any of the provided option or they just chose your select all checkbox. There is no need for the multi select input widget to handle that (and it shouldn't - modules / widgets should focus on one very specific use case, and in this case it is about allowing multiple selection similar to a plain HTML multi select field).

nikyinform
Champ on-the-rise
Champ on-the-rise

Thanks for quick reply Axel.