Configure left padding of a system number in a table
Release version: Yokohama
Updated January 30, 2025
1 minute to read
You can configure the left padding of the system numbers on a table. For example, pad
the Number field on an Incident, Problem, or Change
Request.
Before you begin
If you are configuring numbers on a custom table or a table that does not extend the
task table, then, before performing the following procedure, you must prepare business
rules and script includes. For more information, see Prepare to left-pad number fields in custom tables.
Role required: admin
Procedure
Navigate to the form, then right-click the Number field
and select Configure Dictionary.
Enter the following script in the Default value field
and click Update.
javascript:getNextObjNumberPadded();
Navigate to System Definition > Number Maintenance.
Open the table record.
Enter a value in the Number of digits field.
Click Update.
Number padding is applied to both existing and new records.
The result of the configuration in the image is an Incident number that is
left padded.