decimalSymbol not working #2461
Closed
quagliarellamichel
started this conversation in
General
Replies: 1 comment
-
I also noticed that with the configuration w2utils.locale({ does not completely accept the value of the filed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone I have encountered a problem with decimal separators.
in us format the decimal separator is "." but in italy the separator is "," I tried this configuration
import { w2utils } from "/w2ui-2.0/w2ui-2.0.es6.min.js"
w2utils.locale({
dateFormat : "dd/mm/yyyy",
timeFormat : "hh:mm",
currencyPrefix : "€ ",
currencySuffix : "",
currencyPrecision : 2,
groupSymbol : "",
decimalSymbol : ","
});
let win = new w2form({
"name": "win",
"style": "border: 0; background-color: transparent;"
"autosize": true,
"fields": [
{
"field": "price",
"type": "money",
"required": true,
"html": {
"label": "price"
}
},
]
})
but on typing the comma is accepted but the output on the filed is always with the dot
Beta Was this translation helpful? Give feedback.
All reactions