T
Typebot•4mo ago
acromacho

Number input

I have issues with number input. 1, decimal places... There is a localization issue. In Slovak, keyboards are sometimes using dot, sometimes comma to separate decimal places. When it is set localization to en, it transforms decimal to number like 5,5 to 55 and if I set local to sk-SK , commas works ,but I cant put there dot . , which is opening in my mobile browser }someone has it with comma .... 2, sometimes I would like to have it open only numbers, but store it as a text so that if someone enters zero at the beginning, it does not cut it ....
7 Replies
Baptiste
Baptiste•4mo ago
1. I tried to set locale sk and indeed it does not allow for dots so you should not be able to expect. What did you expect? 2. If you are in this situation, then you are not expecting a number because numbers never starts with a 0. I suggest you use Text input in that case 🙂
acromacho
acromachoOP•4mo ago
1. But on my phone, it opens a number keyboard, where there is a dot, not a comma... I know it is ambivalent, but it is what it is... The language sucks. So if I set it to sk local, I cant even put the decimal into that... And if local is en, someone whose keyboard has comma has a problem 2, indeed it is a text input, but consisting only of numbers. So I would be great if that opens number keyboard instead. Theoretically even the first issue could be solved that way. But I don't know if that is possible 1. For the first one, I would expect both dot and comma to be able to process as a decimal separator
Baptiste
Baptiste•3mo ago
arf that's indeed an issue, it seems the numeric input on mobile browser is based on browser language So ideally, we should handle the format per user based on their language and do the format translation on the server Alright pushing a fix for that now Indeed, would be nice to have inputMode setting for Text input. Implementing that now Pushing a new Input mode option on the text input. Should be available in 30 min max! Let me know if that suits you!
acromacho
acromachoOP•3mo ago
Input mode on text looks great. I don't know if you have fixed the issue on number input as it is still not working, but number format on text works fine. When are you pushing changes to the self-host ?
Baptiste
Baptiste•3mo ago
Yes should be fixed. Still not working?
acromacho
acromachoOP•3mo ago
hmmm... still https://app.typebot.io/typebots/cmbqmqa8s0005jy04h3pklua4/edit Here i have set up number with local sk-SK , but it opens a numeric keyboard for me with a dot, that does not work
Editor
Create and publish conversational forms that collect 4 times more answers and feel native to your product
Baptiste
Baptiste•3mo ago
That's a tough one It means your keyboard has a different language than your browser Maybe your browser is in en and your keyboard sk And we don't have a way to detect the keyboard language.

Did you find this page helpful?