The CreatorCon Call for Content is officially open! Get started here.

How can I add an image to my catalog item

Cupcake
Mega Guru

I have a copy of a .jpg in which I want to add that to a catalog item.

How can I accomplish this please? Can this be done via a Macro variable type?

 

find_real_file.png

Thank you,

Karen

1 ACCEPTED SOLUTION

Cupcake
Mega Guru

I got it working. Here is how I made it work. This works for Service Portal

a. Created the variable

b. Variable type = macro

c. Under the Annotation tab - in the Instructions box click the Image icon to add your image

d. Under the Type specifications tab - give it a macro of images_for_variable_items

 

View solution in original post

5 REPLIES 5

Raju Koyagura
Tera Guru

Yes, you can achieve this by using Macro or UI Page or Widget (Service Portal)

find_real_file.png

Hi I just changed the type to UI Page and inserted the image, but when I went to the Service Portal to make sure it was visible I don't see the image.

Am I missing something? Do I need to add anything to UI Page on the Type specifications page.

 

Macro and UI pages may not work in service portal. Better use widgets to get the right result in Portal. 

Allen Andreas
Administrator
Administrator

Hi,

There's also another way I've seen people do this: 

"However you can enable "Help text" for that variable using configuration changes.

 

Within the help text you can use html tags, like <img src='dte.jpgx'></img>. If that will suit your requirement you can go with that.

 

Let me know if you need anymore information.

 

 

 

For this to work, you need to set the property "glide.ui.escape_text" to "false"."

Credit to: https://community.servicenow.com/community?id=community_question&sys_id=ffe643e5db1cdbc01dcaf3231f96...

 

That allows you to sort of attach it to a particular field.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!