Sharepoint – Custom Integer Column – Remove thousand separator in EditForm

integersharepoint-2010

I created a new column definition in Sharepoint 2010 of type integer and with Commas set to false.
A content type uses this column.
When I create a list based on the content type, the "View Item" form will display the field correctly: 2010.
The EditForm however will display it as 2,010: with a comma although commas is set to false.

This is a new integer field (not a number field converted to integer)

Any ideas how to display 2,010 as 2010 in the EditForm?

 <Field
  ID="{FF3B3FA8-AF33-4691-AD7E-1463DC024B99}"
  Name="studyYear"
  StaticName="studyYear"
  DisplayName="Study year"
  Title="Year"
  Description="Study year"
  Required="FALSE"
  Group="Custom Columns"
  Type="Integer"
  Commas="FALSE"
  Min="1900"
  Max="2300"
  MaxLength="4">
 </Field>

Best Answer

I wanted to group list items by Year based the Created field, but needed to covert number to text to avoid 1000 separator (,)

So I created a calculated field with formula of =LEFT(YEAR(Created),1)&RIGHT(YEAR(Created),3)

Related Topic