This component provides an alternative to the standard built-in Path feature.
It's interesting to use it for picklist that hold alternate values rather than values that reflect a progression of stages.
The component runs entirely on the Lightning Data Service and requires no Apex.
If you are on MacOS or Linux, run
sh install.dev
Otherwise, type the following commands:
- Create a scratch org and provide it with an alias (path in the command below):
sfdx force:org:create -s -f config/project-scratch-def.json -a pl-buttons
- Push the app to your scratch org:
sfdx force:source:push
- Open the scratch org:
sfdx force:org:open
- Edit a record page with the Lighning App Builder
- Place the Picklist Buttons component on the page.
- Set the Qualified Field Name parameter to one of the object picklist field. The field name must be qualified (eg:
Account.Rating
orDummy__c.Stage__c
).