How to show or hide passwords without using a plugin (using States)
- You need Two input fields On with content Type Text and the other with content Type password
- Input Content Type password should be set as visible on page load
- Input Content Type Text should be set too not visible on page load
- You will need an eye icon (Choose the icon and search for eye)
- Create a state for the icon (yes or no type) set default state to “no”
- Set a condition on the icon as follows
a. when icon state (In 5 above) is yes, Icon is the eye icon with the cross out
b. when icon state (In 5 above) is no Icon is unchanged - For the input content type password set the following conditions
a. When icon state (In 5 above) is yes then this input is not visible
b. When icon state (In 5 above) is no then this input is visible - For the input content type text set the following conditions
a. When icon state (In 5 above) is yes then this input visible
b. When icon state (In 5 above) is no then this input is not visible
Test it and Viola your users can show or hide the password field