Cognito Forms logo
Experience the future of Form Building Start Building Now!

Mask Passwords from View with the Password Field!

Posted by Nadia A. 01/19/2017 Categories: Feature Release Tips & Tricks

Last November, we revamped the Textbox field to include advanced text input validation; making it possible for you to easily validate various types of user input (like Zip Codes, Social Security Numbers, MAC Addresses, and even custom strings). This month, we've added another unique feature to the Textbox field: the ability to mask inputted passwords from view!

To securely collect passwords through your Cognito Forms, start by opening up your form settings and make sure that you have data encryption enabled. Our data encryption feature (available to organizations on our Team and Enterprise plans) adds an extra layer of security to your entry data, and also prevents it from being transmitted out of your Cognito Forms account.

Lastly, add a Textbox field to your form, and select Password as the field type. And that's it! Now, when a user types in their password, the characters are masked from view:

Password validation

With the help of the custom error option, you can also ask users to confirm their password and validate that the two passwords match. To do this:

1. Add a second password field to your form labelled "Confirm Password" (or something similar).

2. From the field settings of your second password field, select Custom Error Option - When. In this case, we want an error message to appear when the second password is not the same (or not equal to) the first password:

3. Make sure to write your custom error message:

Now, when a user types in an email that doesn't match the original Email field, a message will appear to let them know:

A custom error message that informs users that their emails do not match.

Have any questions about collecting passwords, or Cognito Forms in general? Feel free to contact us and let us know!

Gravatar Nadia is the Marketing Coordinator for Cognito Forms. In her spare time, Nadia enjoys spending far too much time on YouTube, eating Swedish Fish, and cuddling with her two Chihuahuas.
Printable View