Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Changing UI.TextField value one character at a time

$
0
0

I’m working on a price calculator application and I'm trying to implement a feature where by default you see $0.00 as current value for the price UI.TextField, but when onChange event triggers. I want to replace current value to user generated value. So, let’s say the first value user typed is = 9. Then you would see $0.09 and if the next is = 2 then you see $0.29 etc. It would basically replace 0 with new value One character at a time and skip “.”. Any suggestions will be greatly appreciated.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>