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:41 AM
Hi @DIVI1
Can you please find the below link and let me know whether it is possible or not.
https://www.servicenow.com/community/developer-forum/how-to-set-the-image-icon-beside-priority-field...
Thanks
SP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 01:52 AM
thanks I'll try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 02:21 AM
Hi @DIVI1
Greetings!
We can do only text as part of hint or like you added screen shot show URL but adding image is not straight forward. Better we can educate users via KB or some external URL.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************