Hi all,
I have the following problem with a Text_Field with a form dataprovider named price(Number).
The format of the text_field is 0.00
When I enter the value 1.94 in the box, the variable price contains 1 instead of 1.94.
But when I use a , instead of a . it does work. Then the variable price contains 1,94.
Is there a way to support both the . and the , as input in a text_field?
Thanks.
both . and , seen as the decimal separator ?
No that is not possible in a plain number textfield. because the . and , are 2 different things.
Depending on the locale (nl) . is the grouping and , is the decimal 1.000,10
or (us) . is the decimal and , is the grouping 1,000.00
If you want to support just both then the quickest way to do it right now is to use a Converter on that field
and tell servoy that the type is a String and then parse/convert it to a number the way you want.