getNextObjNumberPadded() does not set a value.

Elvin_Salim
Tera Contributor

The field has getNextObjNumberPadded(); as its default value, but it sets a new value after the record is submitted, not while the form is loading.

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Elvin_Salim 

is your field type String?

did you try to use Dynamic default similar to Number field on Task?

AnkurBawiskar_0-1761833158173.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi  @Ankur Bawiskar ,

 

Everything is exactly the same as in the picture you attached.

 

BR,

Elvin

@Elvin_Salim 

is this for table which is in scoped app or global scope?

share some details

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

@Ankur Bawiskar

 

It is in scoped app.

 

BR,

Elvin