How to rename Related List Label by Client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2012 06:47 AM
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
Cheers,
Kostya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2012 08:04 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2012 08:16 AM
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 😕
Cheers,
Kostya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2012 08:26 AM
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!