39
Views
11
Comments
Solved
'Show Password' does not work for the 'Repeat Password'
Application Type
Mobile, Reactive

We have created an app where want the user to type in a password and then repeat the password. 

For the first password-inputfield, I can get the Show Password Action to work. However, when I try to apply this action to the second password-inputfield, it still applies to the first password-inputfield. 

My Question: is it possible to apply the Show Password Action to 2 inputfields on the same screen? If so, please tell me how!

Thnx a million!

Hanneke

Champion
Solution

Hello @Hanneke  

This yoy can handle by having boolean variable for each input and you just need to change the type to text.

From the attribute property if an input

I am attaching you an example and sample hope this helps you

https://personal-ejuytnht.outsystemscloud.com/popover/Screen3?_ts=638294607895721832

Thanks
Tousif Khan

SamplePassword_Toggle.oml

Thnx a million, Tousif!

Champion

You are welcome:)

Glad to help you

Kind Regards

Tousif

Hi Hanneke,

Do you pass the widgetId as a parameter? otherwise, OutSystems will find the first element with the class "login-password". See the OutsystemsUI SourceCode https://github.com/OutSystems/outsystems-ui/blob/dev/src/scripts/OutSystems/OSUI/Utils/Utilities.ts#L239 

Hi Damian,

That sounds like a very smart plan, I'll give it a try :).

Thnx!

Hi Hanneke,

Unfortunately, I'm wrong, OutSystems UI is currently on 2.16.0 but the feature I talked about is released in 2.17.0 which is not available on the Forge yet. I don't know when this will be released, but the feature you need is coming. 

The 2.15.0 version was tagged on 15-03-2023 and uploaded to the Forge on 27-07-2023

The 2.16.0 version was tagged on 21-06-2023 and uploaded to the Forge on 09-07-2023

2.17.0 was tagged on 23-08-2023, So it could be released really soon, but no guarantee. 

Hi Hanneke,

By checking the Github with the release notes of 2.17.0 I saw the date 11-09-2023, So I expect this version will be released next week. because the date in 2.16.0 corresponds with the Forge upload date. 2.16.0 is one day apart. 

https://github.com/OutSystems/outsystems-ui/releases/tag/v2.17.0

Hi,

I see 2.17.0 is released, 


  • ROU-4440 - Created a new client action called ShowPassword (the previous one was deprecated) so that we can apply it to a specific input element on a screen.Now, a new optional input parameter called WidgetId will be available to specify the input element to which we will toggle the password visibility.

Hi @Hanneke Quaedvlieg, If your requirement is to just show the password whatever user is typeing on the input field when clicked on the eye icon, then you just need to set the Input Type to password for that field.If that's not the case then can you please share some screenshots or some OML to understand the issue in more detail.

Champion
Solution

Hello @Hanneke  

This yoy can handle by having boolean variable for each input and you just need to change the type to text.

From the attribute property if an input

I am attaching you an example and sample hope this helps you

https://personal-ejuytnht.outsystemscloud.com/popover/Screen3?_ts=638294607895721832

Thanks
Tousif Khan

SamplePassword_Toggle.oml

Thnx a million, Tousif!

Champion

You are welcome:)

Glad to help you

Kind Regards

Tousif

Tousif Khan 

Good and Easy solution. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.