Create custom path dynamically for a picklist field of Stage in Opportunity Object using lightning:picklistPath in Lightning Component Salesforce | how to create custom lightning path for a picklist field of Stage in Opportunity

Hey guys, today in this post we are going to learn about How to Create custom path dynamically for a picklist field of Stage in Opportunity Object using lightning:picklistPath in Lightning Component Salesforce.

Files we used in this post example

customPathStatusCmp.cmp Lightning Component It is used to create a custom custom path for a picklist field of Stage in Opportunity Object in lightning component Uses of lightning:picklistPath.
customPathStatusCmpController.js JavaScript Controller File It is hold Javascript doInit function.
customPathStatusCmpHelper.js JavaScript Controller Helper File It is hold Javascript Helper onselect function to get the list of Picklist value and select the active stage.
customPathStatusCtrl.apxc Apex Class Controller It is used to retrieve the list of Picklist value of Stage field from Opportunity Object through Apex class method.
Standard Object:- Opportunity

Stage Picklist Fields:- StageName

Standard and their fields It’s retrieve StageName Picklist value of Opportunity.

Final Output

custom lightning path in lightning component -- w3web.net

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

Create Lightning Component

Step 1:- Create Lightning Component : customPathStatusCmp.cmp

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

customPathStatusCmp.cmp [Lightning Component File]

Create Component JavaScript Controller

Step 2:- Create Lightning Component : customPathStatusCmpController.js

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

customPathStatusCmpController.js [JavaScript Controller]

Create Component JavaScript Helper

Step 3:- Create Lightning Component : customPathStatusCmpHelper.js

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

customPathStatusCmpHelper.js [JavaScript Helper File]

Create Apex Class Controller

Step 4:- Create Apex Class : customPathStatusCtrl.apxc

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

customPathStatusCtrl.apxc [Apex Class Controller]

custom lightning path in lightning component -- w3web.net

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

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.

4 thoughts on “Create custom path dynamically for a picklist field of Stage in Opportunity Object using lightning:picklistPath in Lightning Component Salesforce | how to create custom lightning path for a picklist field of Stage in Opportunity”

Leave a Comment