Issue with Displaying Choice Labels : Reference field displays the value of the choice

senon
Tera Sage

Hello experts!

■Background
My instance has an application that I created with customization. That table A has a field X that references a record in table B.A record in table B has a field Y of choice type.
The diagram below will help you understand.

senon_0-1703734191515.png



■Problem
When you select a record in table B in table A and save it, the value is displayed and saved instead of the label of field Y whose [Display] is set to True.
For some reason, when I save a field that references a choice, the value is displayed instead of the label.

An important point to note is that the display fields are set to True even though the appropriate fields are set to True.

senon_1-1703734215054.png


■What I want to solve
I want to display the labels of the choices when saving records in table A.

■Reference community

I have already checked the contents of the following community, but I have not received an answer.

Solved: Choice list not always showing correct display val... - ServiceNow Community
Field Value getting Displayed on a Reference Field... - ServiceNow Community

We look forward to hearing your ideas.


Best Regard
senon

1 ACCEPTED SOLUTION

Anil Lande
Kilo Patron

Hi,

Looks like issue this is old issue and platform is not supporting Choice Field as display field for any table.

You can raise a case with ServiceNow support for permanent fix as this is platform level issue.

 

A workaround would be to to create additional field on Table B  (name it - Display Name) and use it as calculated field, also set this field as display true.

 

Screenshot 2023-12-28 at 11.40.41 AM.png

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

1 REPLY 1

Anil Lande
Kilo Patron

Hi,

Looks like issue this is old issue and platform is not supporting Choice Field as display field for any table.

You can raise a case with ServiceNow support for permanent fix as this is platform level issue.

 

A workaround would be to to create additional field on Table B  (name it - Display Name) and use it as calculated field, also set this field as display true.

 

Screenshot 2023-12-28 at 11.40.41 AM.png

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande