Has anyone been able to get the Hide / Reveal Password to work on a popup login?
It works when the login is on the page, I haven’t been able to get it to work when the login is in a popup, I’ve tried to move the plugin to the popup as well with no success…
Thank you for reaching out. Could you please provide a detailed description of your use case and how we can recreate the issue on our side? Specifically, how is the popup integrated into your app? Could you provide a link to your app where this functionality is integrated?
You can always just use a piece of javascript code instead, this is using the Toolbox plugin’s “Run Javascript” action that is triggerd from a custom event I created, with the “id” being the unique ID of the password input. It toggles the type of input from a standard text input to a password input and vice-versa.
// Change the type of input to password or text
function Toggle() {
let temp = document.getElementById("id");
if (temp.type === "password") {
temp.type = "text";
}
else {
temp.type = "password";
}
}
Toggle();
Just a note regarding the issue. The ID attribute does not like spaces. If you have an extra space in front of your text, it will not apply the ID during runtime.
Same goes for when you use the Classify plugin. Make sure there is no space between the element ID text and the first curly brace.