Ask AI
Skip to main content

Get value of text field

Function: Get Value of Text Field

This action helps you retrieve the information (text) that a user has entered into a specific text input field on your application's form. Once retrieved, this text is stored in a variable, ready for you to use in subsequent steps of your workflow, such as saving it to a database, sending it in an email, or using it in calculations.

Input

  • UI element (PART): This is the specific text input field on your form from which you want to get the user's entry. You must select a UI element that is specifically a 'Text Field'. This input is required.

Output

  • Answer (STRING): This is the variable where the text entered by the user in the selected 'UI element' will be stored. By default, this variable will be named TEXT_FIELD_ANSWER, but you can rename it to something more descriptive for your workflow.

Execution Flow

Real-Life Examples

Here are some real-life scenarios demonstrating how to use the "Get Value of Text Field" action:

  1. Capturing Customer Name from a Contact Form

    • Scenario: You have a contact form where customers enter their name, and you want to store this name for further processing, like sending a personalized confirmation email.
    • Inputs:
      • UI element: Select the "Customer Name" text field from your contact form.
    • Result: If a user enters "Alice Wonderland" into the "Customer Name" field, this text will be stored in a variable named TEXT_FIELD_ANSWER (or a custom name you define, like CustomerName). You can then use this CustomerName variable in other actions.
  2. Retrieving a Search Query from a Search Bar

    • Scenario: Your application has a search bar, and you need to get the user's search query to filter a list of products or articles.
    • Inputs:
      • UI element: Select the "Search Query Input" text field (which represents your search bar).
    • Result: If a user types "blue shoes" into the search bar, the text "blue shoes" will be stored in a variable (e.g., SearchTerm). This SearchTerm variable can then be used by a "Filter List" action to display relevant results.
  3. Collecting Feedback Comments

    • Scenario: After a user completes a task, you present a feedback form with a large text area for comments. You want to save these comments to a database.
    • Inputs:
      • UI element: Select the "Feedback Comments" text area (which functions as a multi-line text field).
    • Result: If a user writes "The new feature is great, but the button color is hard to see." in the feedback area, this entire sentence will be stored in a variable (e.g., UserFeedback). This UserFeedback variable can then be passed to an action that saves data to your database.