cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Leading Zero from Custom field

Expert
Active Contributor
0 Kudos

We have created a custom field for sales document . Field type is Numerical Text.

After giving the input in custom field , pressing enter or saving it , automatically zeros are appending at leading side. How to remove this?

Accepted Solutions (1)

Accepted Solutions (1)

Expert
Active Contributor
0 Kudos

This is a standard behavior. I replicated this in the system by creating a custom field in the system of type - Numeric Text with the length 10 and then exposed & published this in the Change Sales Order app. While saving a field, I just gave 4 digits but still after saving it took all the 10 digits. If you want to change this behavior:

Either restrict the digit length which you set while initially creating the custom field to what exactly you need
Or change the data type to something else - integers, text etc.

Answers (0)