How to bypass integer field formatting i.e. do not need comma separator

ashwinipingle
Tera Guru

Hello All,

We are using Xanadu and have system property glide.system.locale value as de.AT

When I add an integer field to project form (pm_project table), then after saving, it shows the number as comma separated (dot separated since the system property is de.AT). Is there a way to avoid/bypass this auto-formatting just for this one integer field which is tracking a material number from another system? 

Or do I need to use a text field and allow only numbers in it using scripting.

I am wondering if there is a low-code way to use an Integer field (only number entry allowed) without it adding any commas/thousands separator.  Currently it shows as below.

ashwinipingle_0-1748416405819.png

 

 

Best Regards,

Ashwini Pingle

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@ashwinipingle 

try to add this in the dictionary attribute

format=none

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

Maik Skoddow
Tera Patron
Tera Patron

Hi @ashwinipingle 

as you can read on https://www.servicenow.com/docs/csh?topicname=c_DictionaryAttributes.html&version=latest you have to add a dictionary attribute format=none to the field.

Or even better (in my opinion) change the type of the field to string. In my experience, external IDs often include also additional non-numeric characters and if so, your field would be prepared to store them.

Maik

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@ashwinipingle 

try to add this in the dictionary attribute

format=none

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks for your response, what if this field is shown on report or dashboard or list view or any other view?

 

Edited - I checked and found that the format is not applied in report/dashboard/list view so this works.

Maik Skoddow
Tera Patron
Tera Patron

Hi @ashwinipingle 

as you can read on https://www.servicenow.com/docs/csh?topicname=c_DictionaryAttributes.html&version=latest you have to add a dictionary attribute format=none to the field.

Or even better (in my opinion) change the type of the field to string. In my experience, external IDs often include also additional non-numeric characters and if so, your field would be prepared to store them.

Maik