Use Case: Tracking Form Progress

In a multi-step form, the step the user is on is saved to Session Storage as they move from one step to the next. Even if the page is refreshed, the user will continue from the same step.

Application Flow:

  • +ADD ACTION → OnClick → Local Storage → Write To SessionStorage
  • Key: “activeStep”
  • Value: “step3”