How to rename Related List Label by Client Script

Kostya
Tera Guru

Hi,

is it possible to rename a label of a related list on the form using client script? I have a custom cmdb with objects related to itself in "parent" field. These have a type field.

I would like to change the Label due the type of related objects. Because there are multiple sub-levels, a have to to this dynamically when the form is loaded.

Any suggestions or tips? Maybe there is an out of the box functionality i didn't find?

Kind regards
Konstantin

Hit the Thumb Icon and/or mark as Correct, if my answer was correct. So you help others to see correct responses and I get fame 🙂

Cheers,
Kostya
3 REPLIES 3

CapaJC
ServiceNow Employee
ServiceNow Employee

Go to the related list on one form (e.g., the Server form), right-click the list header and Personalize -> List Control. Provide a "Label" value to override the label for that related list.

Go to a different form (e.g., the Computer form), do the same and provide a different label for the List Control.

I _think_ this will have the result you're looking for.


Kostya
Tera Guru

Thanks for reply. Unfortunately, that doesn't work. Looks like, it global because it's (Computer, Server) always the same object type / table referenced to itself 😕


Hit the Thumb Icon and/or mark as Correct, if my answer was correct. So you help others to see correct responses and I get fame 🙂

Cheers,
Kostya

CapaJC
ServiceNow Employee
ServiceNow Employee

Hmm, I thought my test did the same. I added the Task -> Parent related list to both the Change and Problem form. The Parent reference field is on task and references task. I gave each related list a different label with List Control.

Anyway, sorry 'bout that. Hopefully someone else will have a working solution!