Show image in a field

Kumar38
Kilo Sage

I have a request item , where user selects a record from a  variable and record has a field of type ; user image , Which I should be displaying on a different variable.

 

Which type of variable is needed to display it and is it as simple as g_form.setValue('variable',gr.user_image field );

3 REPLIES 3

Vishal Birajdar
Giga Sage

Hi @Kumar38 

 

The image type, stored in sys_attachment table so may be you can use attachment variable in catalog item and copy that in variable.

Just a thought...!!

This look interesting ....I'll also check..!!

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Vishal , I used a attachment variable to copy using a regular script which throws attachment format error as the script returns sys Id of the attachment record.

Hi @Kumar38 

 

Yeah...you are right....!!

Unfortunately I don't think so this can easily doable.

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates