Display Flow Stages with an Aura Component
If you’ve added stages to your flow, display them to flow users with an Aura component, such as lightning:progressindicator.
To add a progress indicator component to your flow, you have two options:
-
Wrap the progress indicator with a
lightning:flowcomponent in a parent component. -
Add the progress indicator to your flow screen directly, by using a screen component.
-
Display Flow Stages by Wrapping a Progress Indicator
If you’re tracking stages in your flow, display them at runtime by creating a custom component that wraps a progress indicator with the
lightning:flowcomponent. Use the progress indicator to display the flow’s active stages and current stage, and use thelightning:flowcomponent to display the flow’s screens. To pass the flow’s active stages and current stage to the progress indicator, use thelightning:flowcomponent’sonstatuschangeaction. -
Display Flow Stages with a Progress Indicator on the Flow Screen
If you track stages in your flow, display them at runtime by adding a custom component to the flow’s screens. Create a progress indicator component that displays the flow’s active stages and current stage, and make sure that it’s available for flow screens. When you add the component to each flow screen, pass the
$Flow.ActiveStagesand$Flow.CurrentStageglobal variables into the component’s attributes.
See Also