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:flow component in a parent component.

    1<aura:component>
    2   <lightning:progressindicator/>
    3   <lightning:flow/>
    4</aura: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:flow component. Use the progress indicator to display the flow’s active stages and current stage, and use the lightning:flow component to display the flow’s screens. To pass the flow’s active stages and current stage to the progress indicator, use the lightning:flow component’s onstatuschange action.

  • 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.ActiveStages and $Flow.CurrentStage global variables into the component’s attributes.

See Also