display picklist and radio values in lightning component -- w3web.net

Get Picklist Values Dynamically and display Picklist values & Radio Buttons value in Lightning Component Salesforce | how to get radio button and picklist value in lightning component

Hey guys, today in this post we are going to learn about How to Get Picklist Values Dynamically and display Picklist values & Radio Buttons value in Lightning Component Salesforce.

Files we used in this post example

dropdownCmpApp.app Lightning Application It is used for call the component to preview on browser
dropdownCmp.cmp Lightning Component It is used for create a picklist and radio button on lightning component.
dropdownCmpController.js JavaScript Controller File It is hold Javascript doInit and picklist change functionality to display picklist and radio values in lightning component.
dropdownCmpHelper.js JavaScript Controller Helper File It is hold Javascript Helper Function
dropdownCmpCtrl.apxc Apex Class Controller It is used to get picklist value from sObject throgh apex method
scoreCard__c Custom Object Custom Object to use get picklist values dynamic
targetVSActuals__c Custom Fields Custom Object Picklist Values

Sales Target
Score Value
Actual Sales
Achievement %
Collections Target
Actual Collections

Live Demo

display picklist and radio values in lightning component -- w3web.net

Other related post that would you like to learn in lightning component.

Create Lightning Application

Step 1:- Create Lightning Application : dropdownCmpApp.app

From Developer Console >> File >> New >> Lightning Application

dropdownCmpApp.app [Lightning Component Application]

Create Lightning Component

Step 2:- Create Lightning Component : dropdownCmp.cmp

From Developer Console >> File >> New >> Lightning Component

dropdownCmp.cmp [Lightning Component]


JavaScript helper function in Salesforce by w3web.net

Create Component JavaScript Controller

Step 3:- Create Lightning Component : dropdownCmpController.js

From Developer Console >> File >> New >> Lightning Component >> JavaScript Controller

dropdownCmpController.js [JavaScript Controller]

Create Component JavaScript Helper

Step 4:- Create Lightning Component : dropdownCmpHelper.js

From Developer Console >> File >> New >> Lightning Component >> JavaScript Helper

dropdownCmpHelper.js [JavaScript Helper]

Create Apex Class Controller

Step 5:- Create Apex Class : dropdownCmpCtrl.apxc

From Developer Console >> File >> New >> Apex Class

dropdownCmpCtrl.apxc [Apex Class Controller]

display picklist and radio values in lightning component -- w3web.net

Further post that would you like to learn in lightning component.

Related Topics | You May Also Like

Hi, This is Vijay behind the admin and founder of w3web.net. I am a senior software developer and working in MNC company from more than 8 years. I am great fan of technology, configuration, customization & development. Apart of this, I love to write about Blogging in spare time, Working on Mobile & Web application development, Salesforce lightning, Salesforce LWC and Salesforce Integration development in full time. [Read full bio] | The Sitemap where you can find all published post on w3web.net

3 thoughts on “Get Picklist Values Dynamically and display Picklist values & Radio Buttons value in Lightning Component Salesforce | how to get radio button and picklist value in lightning component”

Leave a Comment