Decimals translated by browser when a dropdown is used

Viewed 166

The dot is removed by the browser and results in a value of 25 if you choose 0.25 (hence the error below).

dot gets removed by the browser

The example config with listitems results in a dropdown in TFS. This works fine in Firefox. Chrome and Internet Explorer remove the dot and e.g. transform the value 0.5 to 5

<FIELD name="Effort" refname="Microsoft.VSTS.Scheduling.Effort" type="Double" reportable="measure" formula="sum">
    <HELPTEXT>The estimated effort to implemented the backlog item</HELPTEXT>
    <ALLOWEDVALUES expanditems="true">
        <LISTITEM value="0" />
        <LISTITEM value="0.25" />
        <LISTITEM value="0.5" />
        <LISTITEM value="1" />
        <LISTITEM value="2" />
        <LISTITEM value="3" />
        <LISTITEM value="5" />
    </ALLOWEDVALUES>
</FIELD>

It can be solved for Internet Explorer by putting English as language preference, but that is not a solution since most of our users have set Dutch. Setting the dot as a decimal separator isn't a solution either, because Dutch uses a comma for that.

enter image description here

How can I solve this without bothering the end user?

2 Answers

You need to define a control field .Please follow this tutorial it will surely help you. Click here Control field numberFormat

or you can also try my sample

<Control Type="FieldControl" FieldName="Microsoft.VSTS.Scheduling.Effort"  Label="Rough Estimation:" LabelPosition="Left" NumberFormat="DecimalNumbers" />

Feel free to ask if it not work .Thanks

Someone from Microsoft found the issue and they are solving it;
"FYI, we found this to be an issue with localization. We are fixing it "

Related