How to display UI macro in service portal catalog form

ramesh_r
Mega Sage

HI All,

I have created the Button in UI macro and i am trying to use that UI macro in catalog variable 

that ui macro is displaying fine in ServiceNow catalog form but its not displaying in service portal view

Please help me to resolve this issue

ServiceNow view

find_real_file.png

Service Portal view

find_real_file.png

11 REPLIES 11

Vivek Verma
Mega Sage
Mega Sage

Hi Ramesh,

 

Service Portal doesn't actually support any jelly, so any ui macro variables you have or ui pages incorporated into catalog items wouldn't render. It's actually not using the catalog ui pages at all. Service Portal is a complete visual layer between the ServiceNow data and the user, so what it's doing in the catalog is grabbing all of your variables and policies and then rendering them.

 

Regards,

Vivek Verma

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Ramesh,

Can you share the code within UI macro that creates this button?

What is the purpose of the button?

Regards

Ankur

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

AbhishekGardade
Giga Sage

Hello Ramesh,

UI Macros and UI pages are based on Jelly... Service Portal is a Jelly free environment and as such Ui Macros and Ui Pages will not render in the Service Portal. 

Macro variables will not display on Service Portal without a macro widget

Solution: 

Widgets only display on service portal for the "back-end" you still need a macro. Here is a screenshot of a couple macro variables with macros and widgets associated to it to accommodate both environments. 

Create a widget and add it to your macro variable:

find_real_file.png

Check out this article for understanding:

https://community.servicenow.com/community?id=community_blog&sys_id=df9ceee1dbd0dbc01dcaf3231f9619c8

Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade

Thank you,
Abhishek Gardade

Prerana1
Kilo Guru

Hello Ramesh,

Did you get the solution for this, i am also facing the same issue.

 

Thanks and Regards,

Prerana