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
- UI element:
- 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 namedUserSatisfactionScore. You can then useUserSatisfactionScorein 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)
- UI element:
- Result: The action retrieves the numerical value from the
Product_Quantity_Slider(e.g.,3). This value is stored in a variable namedSLIDER_FIELD_ANSWER. You can then useSLIDER_FIELD_ANSWERto 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
- UI element:
- Result: The action retrieves the numerical value from the
Project_Budget_Slider(e.g.,2500). This value is stored in a variable namedSelectedProjectBudget. A subsequent action could then useSelectedProjectBudgetto trigger an approval workflow if the budget exceeds a certain limit.