How to add catalog item in a widget?

Bharath kumar6
Tera Expert

I need to add a catalog item in a widget.

If a user click on a link in portal, the catalog item has to open.

1 ACCEPTED SOLUTION

Hi,

 

Go to service portal configuration.

Select designer.

Select the portal page you want to edit.

Search for and select the icon link widget and place it on the page then you can set the type to catalog item and select the catalog item you want it to link to.

find_real_file.png

find_real_file.png

find_real_file.pngfind_real_file.png

View solution in original post

5 REPLIES 5

Jake Sadler
Kilo Sage

Hi,

 

You can use the OOB widget called SC Catalog Item. You can the select the catalog item you wish to display.

 

If this solved your issue please mark my answer as correct.

 

Thanks

 

Jake

Hi,

can you please elaborate on this.

Like where should I use SC catalog item widget and select the catalog item that I wish to use.

Hi,

 

Go to service portal configuration.

Select designer.

Select the portal page you want to edit.

Search for and select the icon link widget and place it on the page then you can set the type to catalog item and select the catalog item you want it to link to.

find_real_file.png

find_real_file.png

find_real_file.pngfind_real_file.png

Sebastian L
Mega Sage

You can see my answer in this (remember to search for previous questions!): https://community.servicenow.com/community?id=community_question&sys_id=456fb3651bad0110ed6c9979b04bcbbb 

Create a custom widget and add this in HTML:

  <div>
  	<sp-widget widget="data.sc_cat_item_widget"></sp-widget>
  </div>

and this in Server:

var catItemProps = {
				sys_id: 'SYSID_OF_CATALOG_ITEM'
	};
		
	data.sc_cat_item_widget = $sp.getWidget("widget-sc-cat-item-v2", catItemProps);

Best regards,
Sebastian Laursen