Ask AI
Skip to main content

Get value of slider field

Function: Get value of slider field

This function allows you to retrieve the current numerical value selected on a "slider field" UI element within your application. Once retrieved, this value is stored in a variable, making it available for use in subsequent actions, calculations, or to display to the user.

Input

  • UI element (PART - Slider Field): This is the specific slider field component on your application's screen from which you want to get the selected value. You must select a UI element that is of the "slider-field" type. This input is required.

Output

  • Answer (STRING): This is the name of the variable where the selected numerical value from the slider field will be stored. You can use this variable name in subsequent steps to access the actual slider value (which will be a number). If you don't provide a name, it will automatically be named SLIDER_FIELD_ANSWER.

Execution Flow

Real-Life Examples

Here are some practical examples of how you can use the "Get value of slider field" function:

Example 1: Capturing User Feedback

Imagine you have a feedback form where users rate their satisfaction using a slider.

  • Inputs:
    • UI element: Satisfaction_Rating_Slider (a slider field on your feedback form)
    • Answer Variable Name: UserSatisfactionScore
  • Result: The action retrieves the numerical value currently selected on the Satisfaction_Rating_Slider (e.g., 8). This value is then stored in a new variable named UserSatisfactionScore. You can then use UserSatisfactionScore in a subsequent action to save this feedback to your database.

Example 2: Adjusting Quantity in an Order

You have an online store where customers can select the quantity of an item using a slider.

  • Inputs:
    • UI element: Product_Quantity_Slider (a slider field on the product page)
    • Answer Variable Name: (Left blank, so it uses the default)
  • Result: The action retrieves the numerical value from the Product_Quantity_Slider (e.g., 3). This value is stored in a variable named SLIDER_FIELD_ANSWER. You can then use SLIDER_FIELD_ANSWER to update the total price of the order or to check inventory levels.

Example 3: Setting a Budget Range for a Project

In a project management tool, users can set a budget range for a task using a slider.

  • Inputs:
    • UI element: Project_Budget_Slider (a slider field on the project details page)
    • Answer Variable Name: SelectedProjectBudget
  • Result: The action retrieves the numerical value from the Project_Budget_Slider (e.g., 2500). This value is stored in a variable named SelectedProjectBudget. A subsequent action could then use SelectedProjectBudget to trigger an approval workflow if the budget exceeds a certain limit.