Track Progress Through a Flow with Stages (Beta)
- $Flow.ActiveStages identifies the stages that are relevant to the flow’s current path.
- $Flow.CurrentStage identifies at which stage the flow is. Make sure that the selected stage is included in $Flow.ActiveStages.
The Online Purchase flow includes stages for users to review their cart, enter shipping details, enter payment details, and confirm their order. The stages display at runtime using a custom Lightning component.
At this point, $Flow.ActiveStages contains the Review Cart, Shipping Details, Payment Details, and Order Confirmation stages, and $Flow.CurrentStage is set to Review Cart.