Ask AI
Skip to main content

Get value of input field

Function: Get value of input field

This action allows you to retrieve the current value that a user has entered or selected in a specific input field on your application's screen. Once retrieved, this value can be stored in a variable for use in subsequent steps of your workflow. This is useful for capturing user input from forms, surveys, or any interactive elements.

Input,

  • UI element: This is the specific input field on your page or form from which you want to get the value. You must select an element that is designed for user input, such as a text box, number field, or dropdown.
    • Type: UI element
    • Required: Yes

Output,

  • Answer: This is the name of the variable where the retrieved value from the input field will be stored. You can use the default name or provide your own. The value stored will be a piece of text.
    • Type: Text
    • Default Value: INPUT_FIELD_ANSWER

Execution Flow,

Real-Life Examples,

Here are some practical ways you can use the "Get value of input field" action:

  1. Capturing a User's Name from a Registration Form

    • Inputs:
      • UI element: Select the "Full Name" text input field on your registration form.
      • Answer: User_FullName
    • Result: The name entered by the user (e.g., "Alice Wonderland") is retrieved and stored in a variable called User_FullName. This variable can then be used to personalize a welcome message or save to a database.
  2. Retrieving a Product Quantity from an Order Form

    • Inputs:
      • UI element: Select the "Quantity" number input field next to a product on your order form.
      • Answer: Ordered_Quantity
    • Result: The number entered by the user (e.g., "3") is retrieved and stored in a variable called Ordered_Quantity. This value can be used to calculate the total price or update inventory.
  3. Saving a Comment from a Feedback Form

    • Inputs:
      • UI element: Select the "Your Feedback" text area on your customer feedback form.
      • Answer: Customer_Comment
    • Result: The text written by the user (e.g., "The new feature is fantastic!") is retrieved and stored in a variable called Customer_Comment. This comment can then be sent to a support team or saved for review.