add Image as a hint

DIVI1
Tera Expert

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:

DIVI1_0-1701939801914.png

how it look right now:

DIVI1_1-1701939902614.png

 


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 ?

7 REPLIES 7

SP22
Mega Sage
Mega Sage

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

thanks I'll try

Dr Atul G- LNG
Tera Patron
Tera Patron

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]

****************************************************************************************************************