ShowPassword client action is working fine in login window but I tried to implement SignUp in PopUp, there ShowPassword client action is not working to implement Show/Hide Password
Kindly help me with this issue to resolve this...
Hi Murali,
The observation that you had is not due to the password type input defined inside the popup. Instead, its how the OutSystemsUI/Utilities/ShowPassword client action is defined to work.
For e.g., If you add one more Password type input (with 'login-password' style class) in the Login screen with the show/hide password feature (using ShowPassword client action) it won't work.
Issue/Limitation:
If you define multiple Password type input ( with 'login-password' style class) in the same screen - The ShowPassword client action will only work for the first Password type input with 'login-password' style class.
Solution:
Define a custom JS to toggle the type attribute of the specific Password type input (referencing the widget Id) to show/hide the input password value. With this approach defining 'login-password' style class to the password type input is not required.
JS Snippet:
const inputPassword = document.getElementById($parameters.PasswordInputId); const typeInputPassword = inputPassword.type; inputPassword.setAttribute('type', typeInputPassword === 'password' ? 'text' : 'password');
Demo Screen: TogglePasswordInputVisiblityTask
Refer to the attached oml.
I hope this helps you!
Kind regards,
Benjith Sam
Thank you @Benjith Sam
You're welcome, Murali.
Glad to help you :)
Hi,
Seems you have multiple OutSystems community accounts (which is ok).
However, you posted exactly the same question before using the other account. Please don't post the same question multiple times.
I removed the other question from the forum.
Regards,
Daniel
Sure. I won't.
Can you help me with the solution for this?
Make sure your input password of signup popup have the "form-control login-password" style class, since i cant see it beacuse u attached a screenshot of login screen
let me know if it works for you
Sergio
Yeah It's there, It's working fine in login page. I created signup in popup, in popup it's not working