Get value of number field
Function: Get value of number field
This action allows you to retrieve the number entered by a user into a specific "Number Input Field" on your application's form. Once retrieved, this number is stored in a variable, making it available for further calculations, validations, or display within your application.
Input,
- UI element
- Description: The specific "Number Input Field" on your form from which you want to get the entered value. You must select a UI element that is configured as a "Number Input Field".
- Type: UI element
- Required: Yes
Output,
- Answer
- Description: The name of the variable where the retrieved number from the "Number Input Field" will be stored. This variable will then hold the user's input.
- Type: Number
- Default Value:
NUMBER_FIELD_ANSWER
Execution Flow,
Real-Life Examples,
-
Calculating a total order price
- Inputs:
- UI element:
Quantity_Input_Field
(a number input field where the user enters the quantity of an item) - Answer:
productQuantity
- UI element:
- Result: The number entered by the user in the
Quantity_Input_Field
(e.g.,5
) is saved into a variable namedproductQuantity
. You can then use thisproductQuantity
variable in a subsequent action to multiply it by the item's price.
- Inputs:
-
Validating a user's age for access
- Inputs:
- UI element:
Age_Input_Field
(a number input field where the user enters their age) - Answer:
userAge
- UI element:
- Result: The age entered by the user in the
Age_Input_Field
(e.g.,25
) is saved into a variable nameduserAge
. You can then use thisuserAge
variable in a conditional action to check if it's greater than or equal to18
before granting access.
- Inputs:
-
Tracking daily sales figures
- Inputs:
- UI element:
Daily_Sales_Count_Field
(a number input field where a store manager enters the total sales for the day) - Answer:
todaySales
- UI element:
- Result: The number entered by the manager in the
Daily_Sales_Count_Field
(e.g.,1500
) is saved into a variable namedtodaySales
. ThistodaySales
variable can then be used to update a daily sales report or display the total on a dashboard.
- Inputs: