Picklist values

How to Fetch Picklist value from sObject and Set in ui:inputSelect

Lightning Component
Prerequisites : basic understanding of Lightning Component and apex programming

In this Sample code we will fetch Picklist field (‘Industry’) values from Account object and set in ui:inputSelect on lightning Component.


fetch picklist value and set in ui:inputSelect
output (click here to see full screen)
sample code for fetch Picklist values from sObject

apex class [ fetchPicklistOptsController.apxc ]

Component [sample.cmp]

Controller [ sampleController.js]

Helper [sampleHelper.js]


Like our facebook page for new post updates.?


Leave a Reply