0

I want to create a text field with this default text: R$0,00. Then, when user types the numbers, it automatically formats the field, like:

R$0,00

User presses 1: R$0,01

User presses 5: R$0,15

User presses 7: R$1,57

User presses 0: R$15,70

And, if the user delete something, only numbers will disappear. Any sugestion?

Thanks !

Victor Milazzo
  • 128
  • 2
  • 13

1 Answers1

0

you just have to write if statements and just setText of that text field and in the delete case just setText="" ..

Hope it helps

sadia zar
  • 62
  • 1
  • 8