+ Start a Discussion
anil Kumaranil Kumar 

Not able to select multiple picklist values using lightning:select in lightning Component

Hi All,

Lightning Ui namespace is deprecating soon hence we are migrating Ui namespace tags to lightning name space.  We have used below tag to select multi picklist values with Ui namespace. Now salesforce suggesting to use Use lightning:select or lightning:combobox .   

If we use lightning:select or lightning:combobox  not able to select multiple picklist values. Could anyone please help me on this.

I have tried using 
multiple="true"​​​​​​​ in lightning select tag but is not accepting. 

  <ui:inputSelect multiple="true" class="multiple" aura:id="InputSelectMultiple" change="{!c.onMultiSelectChange}">

            <ui:inputSelectOption text="Any"/>
            <ui:inputSelectOption text="Open"/>
            <ui:inputSelectOption text="Closed"/>
            <ui:inputSelectOption text="Closed Won"/>
     </ui:inputSelect>

Thanks,
Anil Kumar
VinayVinay (Salesforce Developers) 
Hi Anil,

Try using 'lightning:dualListbox' to show multi select picklist field values.

Kindly review below documentation.
https://developer.salesforce.com/docs/component-library/bundle/lightning:dualListbox/example

Eg:
https://www.biswajeetsamal.com/blog/multi-select-picklist-in-lightning-component/

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar