add Image as a hint
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 01:06 AM
Hi,
I wanted to add an image as a hint for Priority field into "problem" table:
(Hint field is a string type)
that's where we are:
how it look right now:
And I just started to working with the script for that but it's not working...
javascript:
var pic= new GlideRecord('db_image');
pic.addEncodedQuery(sys_id, 'aa7c5c581b8ff51062cfca62604bcb87');
pic.query();
while (pic.next()) {
return pic();
current.update();
}
Someone know why it is not working ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 01:18 AM - edited 12-07-2023 01:18 AM
Hi,
Hint field on Label form is normal text field. It will not evaluate any javascript code.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 01:18 AM
Hi @DIVI1
I doubt this is possible from a technical perspective and to be honest I cannot recommend it. This would be a heavy customization which only works in the classic UI but not in Workspaces, Service Portals and Mobile Apps. So why do you want to invest such efforts with0 only less added value? Instead, stay OOTB as much as possible and you will have fewer pains in the next upgrade
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 01:29 AM
eehhh I thought it is possible.. So maybe you have an idea how could I add an image next to the field "priority" as a link or button ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 01:45 AM
Hi
OOTB you can have linked labels: https://docs.servicenow.com/bundle/vancouver-platform-user-interface/page/administer/navigation-and-...
Maik