Lightning Picklist Path Component

Create your custom path for picklist field in any standard and custom objects. The new lightning picklistpath component in Winter18 helps us to display the picklist field progress similar to the lightning path. The path is rendered as a horizontal bar with one chevron for each picklist item, this component doesn't have key fields or guidance information and doesn't display the mark complete button similar to the lightning path. 

<lightning:picklistPath aura:id="picklistPath" recordId="{!v.recordId}"
picklistFieldApiName="status" />

The picklist path will display the progress based on the recordId and picklistApiName attribute value. Specify the API name of the picklist field in the picklistAPIName attribute which you want to display in the page layout and specify the Salesforce record ID in the recordID attribute so it renders the current value for the field in the page. In this example, the status field in the case object displayed in the horizontal bar with one chevron for each picklist item.

Let’s make this picklist path component writeable using lightning data service. Once the user clicks the picklist value, the onselect action will call the client-side controller and use the event.getParam("detail").value function we can get the selected value. Then assign the value to the lightning data service target fields and save the record. All these actions are performed at the client-side controller without calling any apex class

PicklistPath Component

Client-side Controller


  1. Hi Karan Raj,
    The above posted code is working fine in record home page. I am looking to use the component in communities. I am unable to get the child record value to display pick list value of child in lightning picklist path. Can you please share your ideas on this?


  2. Hey, you:)! Yeah, most of my wishes are yours blog-related. Awesome blog!!!!
    Thanks to sharing this with us! Thanks a lot!!!!!!!!!
    France VPS


Post a Comment

Popular Posts