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

Anil Lande
Kilo Patron

Hi,

Hint field on Label form is normal text field. It will not evaluate any javascript code.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Maik Skoddow
Tera Patron
Tera Patron

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

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 ?