Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
How to display custom catalog item field values in Service Portal - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to display custom catalog item field values in Service Portal
KB0756664

How to display custom catalog item field values in Service Portal


4472 Views Last updated : Sep 25, 2025 public Copy Permalink
KB Summary by Now Assist

To display values from custom fields created on the catalog item table, follow the steps in this article to modify the SC Catalog Item widget in Service Portal. 

Instructions

1. Clone the default SC Catalog Item widget.

2. In the server script of the cloned widget, after line 65, add the following:

                var catTest = $sp.getParameter('sys_id'); // to get the sys_id of the catalog item from Portal URL
var gp = new GlideRecord('sc_cat_item');
gp.addQuery('sys_id',catTest);
gp.query()
while(gp.next()) {
data.stest = gp.getValue('u_stesting');
}
 

In this example, u_stesting is a custom string type field created on the catalog item (sc_cat_item) table that needs to be displayed in Service Portal

3. In the Body HTML template of the widget. after the short description section

          <div class="text-muted sc-cat-item-short-description" ng-if="::data.sc_cat_item.short_description">{{::data.sc_cat_item.short_description}}</div>

 add the following:

                <p>Test {{::data.stest}} </p>

4. Use the cloned version of the widget in sc_cat_item or any custom page used in Service Portal used to display the catalog item.

Release

Applies to any supported release

 


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.