Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Kshmire
Posts: 37
Registered: ‎09-26-2011
My Carrier: Anyone

How to use Password InputMode for a TextField but without masking the characters?

As the title says,

I have in my .qml file the next TextField:

TextField {
                    hintText: "Hello"
                    inputMode: TextFieldInputMode.Password
                    input.submitKey: SubmitKey.Search
                    verticalAlignment: VerticalAlignment.Top
                    textStyle {
                        base: SystemDefaults.TextStyles.BigText
                    }
                }

 But I don't want to mask the characters, and all I could find was that  TextFieldInputMode.Password  enables the masking, that should mean that you can disable it.

I was especting something along the lines of: TextFieldInputMode.enableMasking(boolean mask)

 

Can someone help me? Thanks

Please use plain text.