Show hide password filed


#1

hi how i can show hide password fileld with a buttom action?
reagards


#2

Hi,

Unfortunately React Studio’s password input field does not have such a feature available.

You can probably achieve The same behaviour by editing the exported code. Have you created your custom login plugin or how are you going to use the password field?


#3

i’m using the password filed!


#4

var testimonials = document.querySelectorAll(’.MainScreen .hasNestedComps .Cmpregistra .layoutFlow .flowRow’);
for (var i=0; i<testimonials[0].children.length; i++)
{
if (testimonials[0].children[i].className == “elPassword1”) {
testimonials[0].children[i].getElementsByClassName(“mui–is-touched mui–is-dirty mui–is-not-empty”)[0].type = “text”;
}
}


#5

var testimonials = document.querySelectorAll(’.MainScreen .hasNestedComps .Cmpregistra .layoutFlow .flowRow’);
for (var i=0; i<testimonials[0].children.length; i++)
{
if (testimonials[0].children[i].className == “elPassword1”) {
testimonials[0].children[i].getElementsByClassName(“mui–is-touched mui–is-dirty mui–is-not-empty”)[0].type = “password”;
}
}

to hide!!


#6

showpwd.zip

here a sample