How do you rename the reference field column title/label?

akaupisch
Kilo Guru

Using Helsinki:

1) You are in a list view and select 'Configure->List Layout'.

2) You select an available list item that is a reference (example 'Assigned to') then click the 'Expand selected reference field'

3) You select some field that is in there (ex phone number) and add it to the 'Selected' list.

4) Save

In the new list view it uses the label for phone number that is associated with the User table (in this case Phone Number). However, say the list I'm on already has a column Phone Number...now the column titles have 2 Phone Numbers and no way to distinguish which phone number is which.

What I'm trying to do is change the label of the referenced field to something like 'User.Phone Number' but I can't seem to figure out how. When I go into the dictionary view for that main list, it only has the main reference...there has to be a way, right?

3 REPLIES 3

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

Unfortunately this isn't possible that I know of.


veena_kvkk88
Mega Guru

I agree, this isn't possible as of now. What I can suggest is, create a new custom field on your table, then auto-populate with the field value you want.


In your example:


If you create a new field (u_phone) on your current table, you can set it's default value as: current.assigned_to.phone


Or use a calculated value: current.assigned_to.phone


dunstanchristop
Tera Contributor

  g_form.setLabelOf('<cloumn_name>', 'new label name');

via client script on_load() action.