Get value of password field
Function: Get value of password field
This action allows you to retrieve the text that a user has entered into a specific password input field on your application's form. Once retrieved, this password value is stored in a temporary variable, making it available for use in subsequent steps of your workflow, such as verifying credentials or passing it to another system.
Input
- UI element: This is the specific password input field on your form from which you want to get the user's entered value. You must select an existing "Password Input Field" component from your application's design. This input is required.
Output
- Answer: This is the name of the variable where the retrieved password value will be stored. By default, this variable will be named
PASSWORD_FIELD_ANSWER, but you can choose a different name if you prefer. The value stored in this variable will be the password entered by the user.
Execution Flow
Real-Life Examples
-
Logging In a User:
- Scenario: After a user enters their username and password on a login form, you need to get the password to verify their credentials.
- Inputs:
- UI element: Select the "Password" field component from your login form.
- Result: The password entered by the user (e.g., "MySecureP@ssw0rd") is stored in a variable named
PASSWORD_FIELD_ANSWER. You can then use this variable in a subsequent action to check if the password is correct.
-
Confirming a New Password:
- Scenario: A user is setting a new password and needs to enter it twice for confirmation. You want to get the value from the "Confirm Password" field.
- Inputs:
- UI element: Select the "Confirm Password" field component from your password reset form.
- Answer (variable name):
CONFIRM_PASSWORD_VALUE
- Result: The value from the "Confirm Password" field (e.g., "NewP@ssw0rd123") is stored in a variable named
CONFIRM_PASSWORD_VALUE. You can then compare this with the value from the "New Password" field to ensure they match.
-
Connecting to an External Service:
- Scenario: Your application needs to connect to an external API that requires a password for authentication, and this password is provided by the user through a form.
- Inputs:
- UI element: Select the "API Password" field component on your configuration form.
- Answer (variable name):
API_SECRET_KEY
- Result: The password entered by the user for the API (e.g., "ExternalServiceKey!2024") is stored in a variable named
API_SECRET_KEY. This variable can then be used in a subsequent action to securely authenticate with the external service.