Modifying sys_choice reference list layout

AM24
Giga Guru

So I have a choice field that we were recently asked to change to a list. I am using the previous choices in the reference field of the list. So I do something like this, where I specify sys_choice as the reference table and the specific element, I want.

AM24_0-1708555029955.png

This returns me with this:

AM24_1-1708555197527.png

Only the values show up, not the actual labels. Is there any way to get the labels? That would be the most desired solution.

If not, is it a good idea to rename the values? I don't think that is best practice, but since we are changing the field from a choice field to a list field, would that be a good idea? Thanks.

 

1 ACCEPTED SOLUTION

AM24
Giga Guru

Ok, I just ended up deactivating these and setting the creating choices in which the values and labels were identical.

View solution in original post

5 REPLIES 5

SunilKumar_P
Giga Sage

Hi @AM24 , you can get the Labels by configuring the list layout.

SunilKumar_P_0-1708564371423.png

 

Regards,

Sunil

Aman Kumar S
Kilo Patron

Hi @AM24 

You can configure this, but do remember, wherever you are calling out sys_choice as reference will reflect the same behavior and the list layout.

Follow below steps:

  • Navigate to System UI > Views.

  • Search for name = sys_ref_list and open the record.

  • Select the Lists related list.

  • Search for the table for which you want to change the view and open the record.

    This is the table you are referencing.

    Once you open the record, you will see a related list called List Elements. This related list shows the columns that will be displayed on the pop-up view for the reference field.

  • Modify the List layout by either deleting columns or adding new ones by clicking New

Ref link:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0686318

 

Best Regards
Aman Kumar

Thank you for your response. Would it be possible to only do this for this specific field? I don't necessarily want to change this for all reference lists dealing with this table. Thank you.

Hi @AM24 

Unfortunately its not possible to have custom view in the list for reference fields, it will be instance wide

Best Regards
Aman Kumar