How do I add a widget to a catalog variable

timhorn
Kilo Expert

We have several complex forms that include multiple UI Pages.   We just upgraded to Istanbul and we're looking to convert

our CMS portal to the Service Portal.   I've seen lots of posts about how UI Pages and UI Macros will have to be replaced with

variables that contain widgets.   Many of those posts show what the variable form should look like, with the "widget" field

showing up in the "default value" section.   No matter what I do, I can't get the widget field to show up.   I modified the form

layout to include it.   I tried using every type of variable.   It just won't show up.   Is there some trick to this?   I have to be

missing something obvious.

1 ACCEPTED SOLUTION

ChrisBurks
Mega Sage

The steps to adding a widget to a catalog item are as follows:



1. Create Service Portal widget


2. Navigate to desired Catalog Item to configure


3. Under the Variables section click New


4. Widgets can only be added to variable type "Macro". Therefore select "Macro" as the type


5. Click on the "Default Value" tab


6. In the Widget field select the widget created in step one


7. Select the Question tab


8. Fill in the required fields such as Question and Name.


9. Submit.


Now the widget should appear within the catalog item when rendered via Service Portal.



Here's a quick video to demonstrate:


addwidget


View solution in original post

16 REPLIES 16

Thank you @ChrisBurks  for update, i have created widget and added to catalog item using custom data type, i could see all fields are created on portal, however when submitted ritem , i  could not see widget variale on sc_task though i haved in flow action created catalog task.

 

sc_task form:

anitha0887_0-1715179130534.pnganitha0887_1-1715179230715.png

 

I don't think the custom fields display in the variable editor on the table form. They are used for the catalog. If you need the variables to be present you will more than likely need to create the correlating fields as regular variables.
From your screenshot it looks like a MRVS (multi row variable set) would do the trick