Picklist values

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

Lightning Component

Sharing is caring!

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]

TestApp.app

Like our facebook page for new post updates.?

Sharing is caring!

(Visited 10,104 times, 29 visits today)

21 comments

Leave a Reply