Ask AI
Skip to main content

Get last step

Function: Get last step

This function helps you find out the unique identifier (code) of the very last step in a multi-step user interface element, often called a "Stepper". This is useful when you need to know which step is the final one in a guided process, allowing you to trigger specific actions or display final information.

Input,

  • Stepper UI Element (PART): This is the multi-step user interface component (like a form wizard or a guided process) from which you want to retrieve the last step's unique identifier. This input is required.

Output,

  • Result (NUMBER): This is where the function will store the unique numerical identifier (code) of the last step found in your specified Stepper UI Element. By default, this will be stored in a variable named "NEXT_STEP" in your "Variable scope".

Execution Flow,

Real-Life Examples,

Here are some practical ways you can use the "Get last step" function:

  1. Onboarding Workflow Completion:

    • Inputs:
      • Stepper UI Element: My_Onboarding_Stepper (a stepper component guiding new users through setup)
    • Result: The variable NEXT_STEP (or your chosen output variable) will contain the numerical code of the final step in the onboarding process, for example, 5. You can then use this value to trigger a "Welcome" message or enable a "Finish" button when the user reaches this specific step.
  2. Product Configuration Summary:

    • Inputs:
      • Stepper UI Element: Product_Configurator_Stepper (a stepper component for customizing a product)
    • Result: The variable NEXT_STEP will hold the numerical code of the last configuration step, for instance, 7. This allows you to display a "Review Your Order" screen or enable an "Add to Cart" button only when all configuration steps are completed and the user is on the final step.
  3. Application Submission Process:

    • Inputs:
      • Stepper UI Element: Loan_Application_Stepper (a stepper component for submitting a loan application)
    • Result: The variable NEXT_STEP will store the numerical code of the final submission step, such as 10. This can be used to ensure all required information is gathered before allowing the user to finalize and submit their application, by checking if the current step matches the last step's code.