- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2022 01:13 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2022 01:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2022 01:18 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2022 01:25 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2022 01:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2022 01:29 AM
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