Ask AI
Skip to main content

Get value of text field

Function: Get value of text field

This action allows you to retrieve the text currently entered into a specific text field on your application's forms or pages. Once retrieved, this text is stored in a variable, making it available for use in subsequent actions or for display.

Input

  • UI element (Type: A UI element) The specific text field on your form or page from which you want to extract the value. You must select a UI element that is specifically a "text-field" type.

Output

  • Answer (Type: A piece of text) This is the variable where the text retrieved from the UI element will be stored. You can name this variable anything you like, or use the default name TEXT_FIELD_ANSWER.

Execution Flow

Real-Life Examples

Here are some practical ways you can use the "Get value of text field" action in your applications:

Example 1: Capturing a Customer's Name from a Registration Form

Imagine you have a registration form where users enter their name. You want to save this name to use in a welcome message.

  • Inputs:
    • UI element: Select the "Customer Name" text field on your registration form.
    • Answer: CustomerFullName
  • Result: The text entered by the user into the "Customer Name" field (e.g., "Alice Smith") is saved into a variable named CustomerFullName. You can then use CustomerFullName in a "Send Email" action to personalize a welcome email.

If your application has a search bar, you might want to capture what the user types to perform a search or log their query.

  • Inputs:
    • UI element: Select the "Search Input" text field.
    • Answer: UserSearchQuery
  • Result: Whatever the user types into the search bar (e.g., "product catalog") is stored in the UserSearchQuery variable. This variable can then be passed to another action that filters a list of products.

Example 3: Getting a Comment from a Feedback Form

When users submit feedback, you'll want to store their comments for review.

  • Inputs:
    • UI element: Select the "Feedback Comment" text field.
    • Answer: CustomerFeedbackText
  • Result: The detailed comment provided by the user (e.g., "The new feature is very intuitive and easy to use.") is saved into the CustomerFeedbackText variable, which can then be stored in your database or sent to a support team.