Get value of email input field
Function: Get value of email input field
This action allows you to retrieve the email address that a user has entered into a specific Email Input Field on your form. Once retrieved, this email address can be stored in a variable, making it available for use in subsequent actions within your application, such as sending emails, updating user profiles, or validating input.
Input
- UI element Select the specific Email Input Field from your form that you want to retrieve the value from. This action is designed to work exclusively with UI elements of the type "Email Input Field."
Output
- Answer
The email address entered by the user in the selected Email Input Field. This value will be stored in a variable. By default, this variable will be named
EMAIL_FIELD_ANSWER, but you can choose a custom name if needed.
Execution Flow
Real-Life Examples
Here are some practical ways you can use the "Get value of email input field" action in your applications:
Example 1: User Registration
Imagine you have a user registration form where users enter their email address. After they submit the form, you want to use that email to create a new user account.
- Inputs:
- UI element: Select the "Email Address" field from your registration form.
- Result: The email address entered by the user (e.g., "[email protected]") is retrieved and stored in a variable named
EMAIL_FIELD_ANSWER. You can then use this variable in a "Create User" action.
Example 2: Newsletter Subscription
You have a simple form on your website for visitors to subscribe to your newsletter. You need to capture their email address to add them to your mailing list.
- Inputs:
- UI element: Select the "Newsletter Email" field from your subscription form.
- Result: The email address provided by the visitor (e.g., "[email protected]") is stored in a variable. This variable can then be passed to an action that integrates with your email marketing service.
Example 3: Contact Form Submission
When a user fills out a contact form, you want to send a confirmation email to their provided address and also forward their message to your support team.
- Inputs:
- UI element: Select the "Your Email" field from your contact form.
- Result: The sender's email address (e.g., "[email protected]") is captured and stored in a variable. This variable can then be used as the recipient for a "Send Email" action to confirm receipt of their message.