Record path and progress tracker

Record path and progress tracker

The Record Path displays the values of a picklist field as ordered stages and highlights the stage of the context record: Draft, Submitted, Review, Approved.

Configuration

Setting Key Notes
Object and stage field objectName, stageField The picklist field. Its active values become the stages, in picklist order
Scope filter filter Strongly recommended, for example Contact__c = :contactUser.Id. Only records matching the filter can be displayed or progressed
Style style steps, chevrons or bar
Colour colorClass Design system colour name (brand, accent, ok, warn, danger, info; legacy primary, success... still accepted)
Progression allowProgress, progressMode, allowBackwards Button to the next stage, or click any stage
Stage overrides stages[] Per value: label, description, icon class, colour, hidden
Hide values excludeValues Comma separated values to leave out (for example closed lost)

The record is the context record: the URL recordId, otherwise the logged in contact. Set the Context record id trait to {{record.Id}} on record pages.

Example

{
    "type": "record-path",
    "objectName": "Application__c",
    "stageField": "Status__c",
    "filter": "Candidate__c = :contactUser.Id",
    "style": "chevrons",
    "allowProgress": true,
    "progressMode": "next",
    "stages": [
        { "value": "Draft", "description": "Complete your details and submit." },
        { "value": "Submitted", "description": "We have received your application." },
        { "value": "Review", "label": "In review", "icon": "fa-solid fa-magnifying-glass" },
        { "value": "Approved", "colorClass": "success" },
        { "value": "Rejected", "hidden": true }
    ]
}

Progression

When enabled, the user sees Mark as (or can click any stage in any mode). The server checks the configuration flag, that the record is the context record and that it matches the scope filter before writing the stage field. The component fires portalstagechange.