How to display MultiSelect (DualListBox) Picklist in Lightning Component

By | November 13, 2019

Hi, here we have shown how to display multipicklist values in salesforce Lightning in static way. By using dualListBox we will achieve it in Lightning component.

Lightning Component : Basic5

<aura:component >
    <aura:attribute name="options" type="list" default="[{label:'Admin',value:'Admin'},
                                                        {label:'Lightning',value:'Lightning'}]" />    
    <lightning:dualListbox label="Select List of Topics"
                           sourceLabel="Salesforce Topics"
                           onchange="{!c.changevalue}" />

Controller Js

    changevalue : function(component, event, helper) {
        var selected = event.getParam('value');
        //alert('YOU HAVE SELECTED'+selected);        


<aura:application extends="force:slds">


Here we can move values from right to left & vice versa..

Leave a Reply

Your email address will not be published. Required fields are marked *