Format text input in TextField
-
wrote on 12 Aug 2020, 15:57 last edited by
I have a textField where the user can input an integer value (up to 999999). I achieve this with an IntValidator. So, no other characters are allowed.
What I need is that the displayed text must be formatted. For example:
1 --> 1 m
2 --> 2 m
1000 --> 1.000 m
12000 --> 12.000 mHow can achieve this?
-
I have a textField where the user can input an integer value (up to 999999). I achieve this with an IntValidator. So, no other characters are allowed.
What I need is that the displayed text must be formatted. For example:
1 --> 1 m
2 --> 2 m
1000 --> 1.000 m
12000 --> 12.000 mHow can achieve this?
wrote on 12 Aug 2020, 20:41 last edited by@Adso4 Hi,
Did not run it myself but did you see this web page?
https://stackoverflow.com/questions/19307271/how-to-format-clean-numbers-so-1000-appear-as-1-000-00
Regards,
Emmanuel
1/2