back to top

Removing the Comma (Thousands Separator) from Integer Fields in Creatio

When using an Integer column in Creatio, formatting will be automatically applied, adding a thousands separator comma to any integer values. However, this might not be the desired behavior. For example, for values that represent a year.

To remove this formatting from an integer field on an edit page, we can simply add the following to the values of the field in the diff:

"controlConfig": {
	"useThousandSeparator": false
}

The full item in the diff would look like this:

{
	"operation": "insert",
	"name": "INTEGERdada32f2-37e4-4737-8338-8a9f293b9f90",
	"values": {
		"layout": {
			"colSpan": 6,
			"rowSpan": 1,
			"column": 0,
			"row": 0,
			"layoutName": "ProductGeneralInfoTabGridLayout3b71793f"
		},
		"bindTo": "UsrManufacturerYear",
		"enabled": true,
		"controlConfig": {
			"useThousandSeparator": false
		}
	},
	"parentName": "ProductGeneralInfoTabGridLayout3b71793f",
	"propertyName": "items",
	"index": 0
}

With that one line in place, the field will change from this:

to this:

That fixes this for the edit page. However, in the section list you’ll still see it with the comma:

To fix it in this list we’ll need to override the prepareResponseCollectionItem function and change the value to prevent it from getting formatted. This function gets called for each item, or row, that gets returned from the query for the list. We’ll use this to change it from an integer to text. Then, the system won’t apply the formatting because it will no longer see it as an integer column.

The code we will add to the Section page will look like this (in my scenario, my column is called UsrManufacturerYear)

prepareResponseCollectionItem: function(item) {
    this.callParent(arguments);

    var yearCol = item && item.columns && item.columns.UsrManufacturerYear;
    if (yearCol) {
        yearCol.dataValueType = Terrasoft.DataValueType.TEXT;
        item.set("UsrManufacturerYear", item.values.UsrManufacturerYear.toString());
    }
}

With that code in place our column will no longer be an integer (in the list) so the formatting won’t get applied as it is now seen as text.

You’ll need to also add that to any detail schemas where the column might get displayed as well.

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author
Ryan Farley
Ryan Farleyhttps://customerfx.com/article/author/ryanfarley/
Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Creatio Unlimited Pricing Explained: AI Packages, Costs, Pros & Cons

Learn what Creatio’s new Unlimited pricing model includes, what it doesn’t include, how AI Action packages work, and the pros and cons for businesses evaluating Creatio.

Using the AI Prompt to Create Dynamic Folders in Creatio

Using Creatio's AI prompt to create the filter for a dynamic folder works best if you specifically ask for that, and if you are as clear and direct as possible about the filtering, conditions.

Related Articles

AI Readiness Checklist for CRM Teams: Is Your CRM System Ready for AI?

Before using AI in Creatio, make sure your CRM data, users, processes, and automation foundation are ready. Use this practical AI readiness checklist for CRM teams.

Build Your Creatio AI Skills with the 2026 AI Summer Program

Join Creatio’s free 2026 AI Summer Program to learn how to identify, build, deploy, and manage AI agents.

Creatio 10x Is Coming: Join the Webinar to Explore the Future of AI-Native CRM

Learn what's new in Creatio 10x and how AI-native CRM, agentic AI, and no-code automation are shaping the future of customer relationship management. Join the upcoming webinar and discover what's next.

Creatio Unlimited Pricing Explained: AI Packages, Costs, Pros & Cons

Learn what Creatio’s new Unlimited pricing model includes, what it doesn’t include, how AI Action packages work, and the pros and cons for businesses evaluating Creatio.

Related Videos