Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Can we display a static list on a catalog item form ?

AnciaM
Tera Guru

I have a requirement on a catalog item which updates service instances. I need to display all the relationships available in svc_ci_assoc table . Do we have feature that helps display a static list on the catalog form . Is there any better method to achieve.

6 REPLIES 6

joshuajacks
Kilo Sage

 

What we do is use a custom catalog variable and used a ui macro and a widget to display a note. It pulls the data from the instructions field. If the table data is static, then you could just enter the values. If you're looking for it to be populated dynamically then you may need to do a query in the widget server side logic to fetch the data. That's how we display instructions or custom notes.

Ankur Bawiskar
Tera Patron

@AnciaM 

you can use HTML type variable and display the static data in tabular format etc as per your business requirement

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Is there any reference to do this?

pr8172510
Kilo Sage

Hi @AnciaM,

I tested this using an HTML type catalog variable.

I created a simple HTML table and displayed it on the catalog form. It worked successfully in both the Classic Catalog UI and the Service Portal, making it a good option for displaying static information.

However, if your requirement is to display the records from the svc_ci_assoc table, an HTML variable is suitable only if the data is static. If the relationships need to be retrieved dynamically and stay up to date, a custom Service Portal widget

pr8172510_0-1784123953973.pngpr8172510_1-1784123967479.pngpr8172510_2-1784124017666.png