Allowing “.” and "," as decimal separator in an Input

Hi everyone!

My app is in fr_ch, so my number’s format is “10 000,50”. When I use a decimal input, I’m forced to click the key “,” to separate the decimal.

The key “.” is not recognize as a separator, but the key “.” from my numerical keyboard is.

Do you have any idea how to accept both separator?

Thanks a lot!

Hi @Martino

As a french bubble app we also use the comma as a currency separator.
I think the behavior you describe is the intended behavior for the decimal content format and that it’s an alright user experience.

I might be biased though because the azerty (french) keyboard requires you to press shift + dot key to print the dot character. Since the comma and the dot key are next to each other it would be odd for an azerty keyboard user to use the dot key instead of the comma one to input a decimal amount.

If that’s still bothering you, you might want to try the Input formatter plugin that will give you more control over input behavior.

@pierre6 Thank you very much for your quick answer. I didn’t have in mind the french keyboard, as in Switzerland we have a qwertz keyboard and the “.” is the first function of the the “.” key.

I will have a look to the plugin.

This topic was automatically closed after 70 days. New replies are no longer allowed.