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

1,122 views

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 Salesforce

 

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 Salesforce

 

 

FAQ (Frequently Asked Questions)

How do I use dynamic forms in Salesforce?

When can I get Salesforce Dynamic Forms? Simply go to the Lightning record page of a custom object and select the “Highlights Panel” or the “Record Detail” component, then you'll see the option to “Upgrade Now” and can choose between migrating an existing page or starting from scratch.

What is restricted picklist in Salesforce?

Restricted picklists keep users from adding new values (either through the API or other apps). This restriction is useful for keeping your data consistent.

What is difference between dynamic and page layout?

An instant upgrade from page layouts: Place fields and sections wherever you want. Dynamic layouts: Use visibility rules to show and hide fields and sections. Simpler layout management: Manage the fields and sections on your pages in the Lightning App Builder without touching the page layout editor.

Related Topics | You May Also Like

  • Your reaction of the article ▾
 

Hi, This is Vijay Kumar 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