# Tips for Creat Showing / Hide Password Buttons 


**URL:** <https://forum.wixstudio.com/t/tips-for-creat-showing-hide-password-buttons/17588>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [July 1, 2019, 6:47pm UTC](https://forum.wixstudio.com/t/tips-for-creat-showing-hide-password-buttons/17588 "2019-07-01T18:47:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohsalmanfarizy](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ohsalmanfarizy/32/12705_2.png) [@ohsalmanfarizy](https://forum.wixstudio.com/u/ohsalmanfarizy)\
**Post date:** [July 1, 2019, 6:47pm UTC](https://forum.wixstudio.com/t/tips-for-creat-showing-hide-password-buttons/17588/1 "2019-07-01T18:47:03Z")

</div>

![](https://us1.discourse-cdn.com/wix/original/3X/e/e/eec789c4ea7f678bfd12f5cb4fcaff3cd31ebee8.png)

 ![](https://us1.discourse-cdn.com/wix/original/3X/5/f/5f0a8a07f8e2008d429bfb7306ba2b6d954668b8.png)  
The Code :

$w.onReady( **function** () {  
$w(“#showPassword”).show()  
})

export function showPassword\_click(event) {  
$w(“#password”).inputType = “text”;  
$w(“#hidePassword”).show()  
$w(“#showPassword”).hide()  
}

export function hidePassword\_click(event) {  
$w(“#password”).inputType = “password”;  
$w(“#hidePassword”).hide()  
$w(“#showPassword”).show()  
}

---

<div class="post-metadata">

**Author:** ![reyesinc83](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/reyesinc83/32/18286_2.png) [@reyesinc83](https://forum.wixstudio.com/u/reyesinc83)\
**Post date:** [April 15, 2020, 10:30pm UTC](https://forum.wixstudio.com/t/tips-for-creat-showing-hide-password-buttons/17588/2 "2020-04-15T22:30:06Z")

</div>

does this work on wix forms? Thx in advance

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [April 16, 2020, 1:03am UTC](https://forum.wixstudio.com/t/tips-for-creat-showing-hide-password-buttons/17588/3 "2020-04-16T01:03:54Z")

</div>

Have you tried it?

If you are going to use code though, you might as well just make up the whole thing yourself.

Old post being closed, please add a new post if you still need help.
