Make SC Catalog Item 2 widget for service portal open one specific catalog item

sarahleighton
Tera Contributor

Hi all

I have a requirement to make a copy of the SC Catalog Item 2 widget and code it to open one specific catalog item only. This is because we are creating a separate portal that will be set to public, with one landing page which will also be set to public, and on that page will be the copy of the SC Catalog Item 2 widget which will also be set to public. We want that widget to display one particular catalog item form which will be completed by people outside of our organisation.

Currently, the SC Catalog Item 2 widget is passed the sys id of whichever cat item/ record producer the user clicks on via the SC Category page widget (or a group of other widgets I think e.g. popular items etc). If anyone knows what I would need to do to the code of the SC Catalog Item 2 widget to set it to open one specific catalog item every time, without the user first clicking on an item on the SC Category page widget, that would be great!

Thanks in advance

Sarah 🙂

10 REPLIES 10

gfancher
Tera Expert

I was able to get Jan's original solution to work by changing the server script to match the option name.

gfancher_0-1705010161347.png

Once I replaced options.cat_item with options.catalog_item it worked perfectly.

 

Thanks!

Galen