- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2024 09:20 PM
I would like to change the field label of the yellow marker. How can I do this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2024 10:39 PM
hi @bonsai ,
I will not suggest to do that is OOTB
in navigation type Formatters, then search 'Attached Knowledge' then open it. you can see 'View UI Macro for this Formatter' then click on that
you can see
change this label
Please mark helpful & correct answer if it's really worthy for you.
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2024 10:06 PM
@bonsai If the field you're referring to is an "Attached Knowledge Formatter" or a formatter element, rather than a standard field from a table, the process for changing the label is different. ServiceNow does not provide a direct configuration option to modify the label of formatters through the UI. However, you can modify the formatter label using a on load client script to manipulate the label at runtime.
I will not suggest to do that is OOB but if must please use below code and manipulate dom:
function onLoad() {
// Replace "knowledge_formatter_id" with the actual DOM ID of the formatter element
var formatterLabel = document.getElementById('knowledge_formatter_id').getElementsByClassName('label')[0];
if (formatterLabel) {
formatterLabel.innerText = 'New Label Text'; // Replace with your desired label
}
}
Please test the code first in lower instance before implementing on prod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2024 10:39 PM
hi @bonsai ,
I will not suggest to do that is OOTB
in navigation type Formatters, then search 'Attached Knowledge' then open it. you can see 'View UI Macro for this Formatter' then click on that
you can see
change this label
Please mark helpful & correct answer if it's really worthy for you.
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2024 11:03 PM
Hello @bonsai
I Hope this Answere is useful to Your requement
To change the field label of the yellow marker. you need to follow this steps,
First step: Right click on Filed label > select Configure label, as shown in the below image
step 2 : once click on Configure Label you can edit the label as showen in the below image,
Step 3:once edit the label you can click on update button you can see the modified label name as shown in the below image
follow the above procces you can resolved issue
Best Regards
Mule Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2024 05:13 PM
Thank you for your reply.
The above method is the best way to change the label of a custom field!
For some reason, this operation cannot be performed on the field in question this time.