A list field shows sys ids instead of actual values

RonAlmog
Tera Contributor

Hello, I created a custom List field in change_request table, named u_environment, referencing a custom table named u_environment.

When selecting several options their names display properly, but when I submit the change request it only shows the name of the first environment chosen, and the rest of the choices are shown as a single 7-character string.

 

I tried to set the desired field u_name to "Display" at the custom table, to clear the cache and to set u_name as the "Element" field at the Reference List record of u_environment in the sys_ui_list, and nothing works.

 

Would appreciate any help! 🙏🏻 

1 ACCEPTED SOLUTION

Hello @RonAlmog ,

 

I did some testing. The Max length attribute is indeed ignored for List fields. I created a new field and deliberately set the Max length to 40 characters but it still works fine even after submitting a record:

RobertH_0-1743437704415.png

Can you please right click on the label of your Environment field, select "Show u_environment" and provide a screen shot of the popup.

Would it be possible for you to create another List field on Change Request that references the Environment table, and check if you have the same issue there?

 

Regards,

Robert

View solution in original post

21 REPLIES 21

@RonAlmog 

increase the length of list field to 4000 as per OOB list field and see if that works.

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

Ankur Bawiskar
Tera Patron
Tera Patron

@RonAlmog 

Is this happening for all users or some users?

Any client script or UI policy is written on that field?

Did you try creating a new field which refers that table of type List?

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