The CreatorCon Call for Content is officially open! Get started here.

Why does my copy of the 'widget-sc-cat-item-v2' not display forms?

pbuis
Tera Expert

Hi all, I'm working on a custom version of the Employee Center and making copies of most widgets to do some customizations. It's going pretty well but I ran into trouble with the catalog item widget. My copy refuses to display any part of the form I want to load in.

The original widget:

find_real_file.png

My widget:

find_real_file.png

 

I've already looked at a bunch of things like scope access and restricted access privileges, but nothing. Can anyone explain this behavior?

1 ACCEPTED SOLUTION

pbuis
Tera Expert

Found the solution. Unlike most widgets in the Employee Center, the Catalog Item widget has to be in the global scope.

View solution in original post

3 REPLIES 3

Anil Lande
Kilo Patron

Hi,

Have you tried adding logs and console logs?

What is the URL when you open any catalog? It should contain sys-id of Catalog item.

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

I added the cursive part:

data.sc_cat_item = $sp.getCatalogItem({
sys_id: data.sys_id + '',
is_ordering: true
});
console.log(data.sys_id);
console.log(data.sc_cat_item);

 

It puts out this:

find_real_file.png

The sys_id is correct.

pbuis
Tera Expert

Found the solution. Unlike most widgets in the Employee Center, the Catalog Item widget has to be in the global scope.