Tutorials

/

Password Element: How Do You Use It?

With the password element, you can securely hide user passwords and create a secure login experience using validation checks and the password show/hide feature.

‍

‍

The “Password” element is a special input element that allows users to securely enter their passwords within the application. Characters entered by the user are hidden by default for security purposes, preventing unauthorized individuals from seeing the password. In this video, we’ll explore an example of how to use the “Password” element in a “User Login Screen” scenario.

First, add a “Label” element to your page. Type “Log In” in the “Value” field. From the “Style” field in the “Styling” panel, select “Heading 5 Text.” Add a “Text Input” element to the page. Type “User Name” in the “Placeholder” field. Below that, add a “Password” element. Type “Password” into the “Placeholder” field. Click the “Add Validation” field located at the bottom of the “Properties” panel. Type your message into the “Invalid Message” field. Add a “Button” element to the screen. Type “Log In” into the “Label” field. Use “Add Action” and follow the “onClick,” “Authorization,” and “Sign In” steps to define the action. In the “username” field that opens, set the value to “Components,” “TextInput,” “value.” For the “Password” field, set the value to “Components,” “Password,” “value.”

When the application is tested, the user enters their username and password on the login screen and clicks the “Log In” button; if incorrect information is entered, a warning is displayed. The password field is displayed as hidden using the “Password” element and can be toggled between showing and hiding the password using the icon to the right of it.