How to Show or Hide a Password in a Webflow Input
Learn how to add a show/hide password button to a Webflow field with JavaScript.
In this tutorial, Sandro, cofounder of Gemeos Webflow agency, shows you how to add a show/hide button to a password field in Webflow.
Example
1. Build the structure in Webflow
Create a Div containing a Password input (class password-input) and a button (class password-toggle) side by side. Position the button absolutely on the right of the input if needed.
2. The script
Simplified version (text only)
If you just want a text link "Show / Hide" without icons:
Conclusion
The password toggle improves UX on every password form. It’s essential on mobile, where typing is more error-prone.
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.















