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

Java Development

Reply
New Contributor
Posts: 4
Registered: ‎03-02-2012
My Device: 8520
My Carrier: Claro

How to do a credit card mask using eclipse plugin

Hi!

I  am newbie with BB and I want to know how can I do a editable field mask with a parent input. I want to use a credit card mask, I mean when I type the numbers this can be reordered with -

ex

if I input 1234123412341234 in the field look like this 1234-1234-1234-1234

 

In another language this is a mask but here I dont know how to do. I put a digit limit and filter for numbers.

 

TIA

 

Edwin

 

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

Re: How to do a credit card mask using eclipse plugin

easiest solution would be to use several fields, separated by labels with '-'

another option would be to overwrite keyChar and insert the signs manually.
----------------------------------------------------------
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