Ask AI
Skip to main content

Get last step

Function: Get last step

This action helps you identify the final step within a "Stepper" UI element. A Stepper is a visual component that guides users through a sequence of steps, often used for forms, onboarding processes, or multi-stage workflows. This action retrieves the unique numerical identifier (code) of the very last step in that sequence.

Input

  • Stepper ui element: Specify the "Stepper ui element" from your application for which you wish to get the last step's numerical code. This is a required input.

Output

  • Result: The name of the variable where the numerical code of the last step will be stored. By default, this variable is named NEXT_STEP.

Execution Flow

Real-Life Examples

Here are some practical ways you can use the "Get last step" action in your no-code application:

Example 1: Displaying Progress in an Onboarding Flow

Imagine you have an onboarding process with multiple steps, and you want to show users how many steps are left or what the final step is.

  • Inputs:
    • Stepper ui element: Onboarding_Stepper (referring to your onboarding UI component)
    • Result: LastOnboardingStepCode
  • Result: The variable LastOnboardingStepCode will now hold the numerical code of the final step in your Onboarding_Stepper, for example, 5. You can then use this number in a text field to display "You are on step X of 5" or "The final step is step 5."

Example 2: Dynamically Navigating to the End of a Multi-Stage Form

You have a complex application form divided into several sections using a Stepper. You want to provide a "Skip to End" button that takes the user directly to the last step for review.

  • Inputs:
    • Stepper ui element: LoanApplication_Stepper
    • Result: FinalFormStep
  • Result: The variable FinalFormStep will store the numerical code of the last step in the LoanApplication_Stepper, for instance, 8. You can then use this FinalFormStep value with a "Go to Step" action to navigate the user directly to step 8 when they click the "Skip to End" button.

Example 3: Validating Completion of a Workflow

In a project management application, you have a workflow Stepper for task completion. You want to check if a user has reached the final step of a specific task workflow.

  • Inputs:
    • Stepper ui element: TaskWorkflow_Stepper
    • Result: WorkflowEndStep
  • Result: The variable WorkflowEndStep will contain the numerical code of the last step in the TaskWorkflow_Stepper, for example, 3. You can then compare the user's current step with WorkflowEndStep to determine if they have completed the workflow, triggering an update to the task's status.