I keep encountering this issue every time I need floating values. For SilverStripe 3 I use a drop-in replacement for NumericField
(named SaneNumericField
) that shaves all the localization crap and leave it with digits and periods. In SilverStripe 4 I manually force every field to HTML5 mode that (at least on firefox) accepts both dots and commas as decimal separators.
What I would like is a way to input numbers with period as decimal separator and without grouping, independently from the locale I’m using. I don’t know what other people do, but here in Italy numbers are usually input from the keypad: commas (the local decimal separator) and dots (grouping separator) are used (if needed) only for presentation.
On github I found many related issues, but I don’t grasp the current state of affairs. Is it possible to have an “international” NumericField
right now? Or there is a module implementing it for SilverStripe 4?