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

Hello Suseela,

can you please provide me the sample code to create the widget and include the catalog macro variable so that it will be helpful for me to create new widget.

also, do we need to include this widget in the "Sc Catalog item" widget as we are using this widget to display the catalog items, if so can you please guide me on this, i am new to widget development and need your guidance on the same.

 

Thanks and Regards,

Bhavna

Hi Ramesh,

You will have to create UI Macro and then there is a widget field on the Macro variable form which will need to point to this Service Portal widget which is newly created.

Remember to clear out the macro field

find_real_file.png

Regards
Ankur

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

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.

Thank you so much!!!

 

Regards,

Bhavna

Ankur Bawiskar
Tera Patron
Tera Patron

@Bhavana Ramesh 

Hope you are doing good.

Let me know if that answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

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