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.

 


 

FAQ (Frequently Asked Questions)

What is the lightning path?

A lightning:path component displays the progress of a process, which is based on the picklist field that's specified by Path Settings in Setup. The path is rendered as a horizontal bar with a chevron for each picklist item.

What is force recordData?

A force:recordData component defines the parameters for accessing, modifying, or creating a record using Lightning Data Service.

What is lead path in Salesforce?

Like any kind of path, a sales path leads you where you need to go. Using sales paths helps your sales reps adopt and adhere to your company's sales processes without getting sidetracked. Paths guide your sales users and help them stay focused on important sales tasks so they can close their deals quickly.

Related Topics | You May Also Like

  • Your reaction of the article ▾
 

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

8 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