survey-creator icon indicating copy to clipboard operation
survey-creator copied to clipboard

Input number decimal separator

Open jmlopezo opened this issue 4 years ago • 3 comments

Are you requesting a feature, reporting a bug or ask a question?

Question

What is the current behavior?

How the decimal separator can be defined based on the locale of the browser.

Currently it only supports dot (.), When I enter one with comma (,) the value is lost.

jmlopezo avatar Jun 07 '21 13:06 jmlopezo

Could you tell me where did you change separator?

tsv2013 avatar Jun 07 '21 14:06 tsv2013

@tsv2013 For an input element type text and inputType number

{ "type": "text", "name": "myDecimal", "inputType": "number" }

jmlopezo avatar Jun 07 '21 14:06 jmlopezo

This question type uses the browsers input type. So the locale used is based on browser configuration and it is not affected by SJS code.

SamMousa avatar Mar 19 '24 12:03 SamMousa