Get value of email input field
Function: Get value of email input field
This action helps you retrieve the email address that a user has entered into a specific email input field on your application's form. Once retrieved, this email address is stored in a variable, making it available for other actions or parts of your application to use.
Input
- UI element (PART): This is the specific email input field on your form from which you want to get the user's entered email address. You must select an existing "Email Input Field" component from your application's design. This input is required.
Output
- Answer (EMAIL): This is the name of the variable where the email address retrieved from the UI element will be stored. By default, this variable will be named
EMAIL_FIELD_ANSWER, but you can change it to something more descriptive if needed. The stored value will be an email address.
Execution Flow
Real-Life Examples
-
Collecting User Registration Email:
- Scenario: You have a registration form, and you want to capture the user's email address after they submit the form.
- Inputs:
- UI element: Select the "Email Address" input field from your registration form.
- Answer:
UserRegistrationEmail
- Result: The email address entered by the user (e.g.,
john.doe@example.com) is stored in a variable namedUserRegistrationEmail, which can then be used to create a new user account or send a welcome email.
-
Validating an Email for a Newsletter Subscription:
- Scenario: A user enters their email into a newsletter subscription box, and you want to ensure it's a valid email before adding them to your mailing list.
- Inputs:
- UI element: Select the "Newsletter Email" input field.
- Answer:
NewsletterSubscriberEmail
- Result: The email address (e.g.,
info@company.com) is retrieved and stored in theNewsletterSubscriberEmailvariable. You can then use another action to validate this email format and proceed with the subscription if it's valid.
-
Updating Contact Information:
- Scenario: On a user profile page, a user updates their contact email. You need to get the new email to update their record in your database.
- Inputs:
- UI element: Select the "Profile Email Field" on the user's profile page.
- Answer:
UpdatedContactEmail
- Result: The newly entered email address (e.g.,
new.email@domain.net) is saved into theUpdatedContactEmailvariable, which can then be passed to an action that updates the user's profile in your database.