Can you remove the comma for integer field yet?

Julia Allen1
Giga Expert

Hello,

I can't find a recent thread to answer if we can remove the comma on an integer field? I just want the numbers, but it keeps adding in the comma

 

thanks

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Julia,

 

You can pass attribute to the integer field as format=none. Give it a try.

View solution in original post

7 REPLIES 7

Thanks for detailing it here for future readers. But good to know that you got an idea from comments above. 

This worked perfectly for me, thanks!

Jeff Wentworth
ServiceNow Employee
ServiceNow Employee

Please note that if you add the attribute 'format=none' it strips any formatting for the integer field and the behavior results as a string field.

 

Example:

  1. Add the Attribute: format=none and Save
  2. Test the field on the form by entering something like a0s9df88a0s98df then tab out of the field
    1. Note that the expected Integer data type behavior should result in stripping out the alpha characters and leaving the numeric characters: 0988098
    2. Actual result from this test: a0s9df88a0s98df (field has behaved like a String data type)
  3.  Don't believe that the format=none provides the expected solution

Thank you 🙏🤝