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
Regular Contributor
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks
My Carrier: zcon
Accepted Solution

Only numbers on keyboard in blackberry 10.2 cascades

Hi,

 

I want to open a keyboard which contains only numbers. When I open keyboard as phone number type it contains some extra characters which I want to hide.

 

Can I do it in blackberry 10.2 cascades? Or there is any predefine type in blackberry 10 cascades. 

 

I want a same keyboard which open in blackerry 10.2 OS to enter mobile password.

 

Thanks.

Developer
Posts: 16,742
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Only numbers on keyboard in blackberry 10.2 cascades

no.
you can filter out unwanted chars, but the keyboard options are limited.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 85
Registered: ‎06-22-2013
My Device: N/A
My Carrier: N/A

Re: Only numbers on keyboard in blackberry 10.2 cascades

If you mean the input mode for text field (Numbers only or what ever)

you can do this

 

TextField {
inputMode: TextFieldInputMode.PhoneNumer (there are other modes too)
}

 

i hope it helps.

Highlighted
Regular Contributor
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks
My Carrier: zcon

Re: Only numbers on keyboard in blackberry 10.2 cascades

Hey I have used same type for textfield...But  the keybord which is opening contains extra characters like ( , ) , * ,+..etc
I want to hide this characters. So how can I hide them?


Developer
Posts: 825
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: Only numbers on keyboard in blackberry 10.2 cascades

you cannot hide them however with version 10.2.1 there is a new keyboard type that only has numbers, a (.) and (#)  which makes parsing out unwanted characters a bit easier.

 

The downside is, we don't have a SDK that supports this yet Smiley Wink   but it's coming soon.

Regular Contributor
Posts: 63
Registered: ‎08-05-2013
My Device: Blackberry-10 webworks
My Carrier: zcon

Re: Only numbers on keyboard in blackberry 10.2 cascades

Thanks all of you!!!!