Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Custom type variable not visible on catalog item

Sonu Parab
Mega Sage

Hi All, 
I have created one  'Custom' type  variable in a 'Create Incident' Catalog Item.And I have set a Macro to this variable.

(This macro display an image. I have already added image to 'db  image' table. Also this variable displays image when I click on 'Try It' option but not on portal ).

SonuParab_0-1678700552551.png


Macro Script.

SonuParab_1-1678700578663.png

 

Any and all help greatly appreciated!

 

 

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Sonu Parab 

UI macro don't work on portal.

To show that in portal you need to create widget and inside the widget HTML add the image.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron

@Sonu Parab 

UI macro don't work on portal.

To show that in portal you need to create widget and inside the widget HTML add the image.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar , Thank you for the quick response.
Yeah, I did it the same and its working.

Thank you

@Sonu Parab 

Glad to know.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Ankur Bawiskar
Tera Patron

@Sonu Parab 

instead you can use Rich text label variable which supports HTML.

there you add the image and it will work fine in both native + portal.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader