Ui macro not showing in service portal

Bhavana Ramesh1
Tera Contributor

Hello guys,

We have few catalog items which has ui macros and they work fine in platform ui but not in service portal, i have used OOB "Sc_category" page for displaying the catalog items, I came to know that ui macros are not supported in portal and we have to build the custom widget, Can anyone guide me how can i customize the widget to include the ui macro in the catalog form

Please guide me on this, till now i was playing around OOB widgets and do not have much idea on customising the widget

Any suggestions and guidance will be highly appreciated!

 

Thanks and Regards,

Bhavna

1 ACCEPTED SOLUTION

Hi,

Please navigate Service Portal--> Widgets and click new to create a new widget.

Below is the sample widget to display a paragraph on a form

find_real_file.png

Include the newly created widget on catalog variable as stated below

find_real_file.png

You no need to include newly created widget in 'SC Catalog Item' . It should work after including the widget in the variable.

 

Hope this helps!

If I have answered your question, please mark my response as correct and/or helpful.

Thanks,

Suseela P.

View solution in original post

10 REPLIES 10

Bhagyashri Sort
Kilo Guru

Hi,

 Please refer below thread.

UI Macro in a service portal

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/build/service-portal/task/ui-mac...

 

Mark it correct and helpful.

Thanks

Bhagyashri Sorte.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Ramesh,

that's correct. you need to take the approach of widget to show macro

check below links for more help

How to display UI macro in service portal catalog form

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

UI Macro in a service portal

Regards
Ankur

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

Namrata Khabale
Giga Guru

Hey Bhavana,

 

Refer the Links, it might help you:

https://serviceportal.io/embedding-widgets-in-service-catalog/

 

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/build/service-portal/task/ui-mac...

 

Mark Correct and Helpful, if it helps!!!

Best Regards,

Namrata.

Suseela Peddise
Kilo Sage

Hi,

You can create new widget to display UI macro content display on portal. You no need to customise any OOB widget to include this, similar like UI macro create a widget and select the widget on variable. Please see below:

 

find_real_file.png

 

If I have answered your question, please mark my response as correct and/or helpful.

Thanks,

Suseela P.