Ask AI
Skip to main content

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,

  1. 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
    • Result: The number entered by the user in the Quantity_Input_Field (e.g., 5) is saved into a variable named productQuantity. You can then use this productQuantity variable in a subsequent action to multiply it by the item's price.
  2. 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
    • Result: The age entered by the user in the Age_Input_Field (e.g., 25) is saved into a variable named userAge. You can then use this userAge variable in a conditional action to check if it's greater than or equal to 18 before granting access.
  3. 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
    • Result: The number entered by the manager in the Daily_Sales_Count_Field (e.g., 1500) is saved into a variable named todaySales. This todaySales variable can then be used to update a daily sales report or display the total on a dashboard.