Ask AI
Skip to main content

Get value of ANY form field

Function: Get value of ANY form field

This function helps you capture the information a user has entered or selected in any form field on your application's screen. It takes the current value from that specific field and saves it into a variable, which you can then use for other actions, display it elsewhere, or process it further in your application.

Input

  • UI element (PART): This is the specific form field on your page (like a text box, dropdown, checkbox, date picker, or slider) from which you want to retrieve the user's input. You need to select the exact UI element from your application's design. This action is versatile and works with any type of form input element.

Output

  • Answer (VARIABLE): This is the name of the variable where the captured value from the selected UI element will be stored. By default, this variable is named FORM_FIELD_ANSWER, but you can change it to something more descriptive for your specific needs, like CustomerName or SelectedProduct.

Execution Flow

Real-Life Examples

Here are some practical ways you can use the "Get value of ANY form field" function in your application:

  • Example 1: Capturing a User's Name from a Registration Form

    • Inputs:
      • UI element: A text input field on your registration form labeled "Full Name".
      • Answer (variable name): NewUserName
    • Result: When this action runs, the text entered by the user into the "Full Name" field (e.g., "Alice Wonderland") is saved into a variable named NewUserName. You can then use this variable to display a personalized welcome message or store it in your database.
  • Example 2: Retrieving a Selected Product from a Dropdown

    • Inputs:
      • UI element: A dropdown menu on an order form labeled "Select Product".
      • Answer (variable name): ChosenProduct
    • Result: If the user selects "Laptop Pro" from the dropdown, the variable ChosenProduct will store the value "Laptop Pro". This allows your application to calculate the price or show product details based on the user's selection.
  • Example 3: Checking a User's Consent from a Checkbox

    • Inputs:
      • UI element: A checkbox field on a privacy settings page labeled "Agree to Terms and Conditions".
      • Answer (variable name): TermsAgreed
    • Result: If the user checks the "Agree to Terms and Conditions" box, the variable TermsAgreed will store "true". If they leave it unchecked, it will store "false". You can then use this true/false value to determine if the user can proceed or if a specific feature should be enabled.