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.
Some Catalog Client Scripts do not work in Service Portal because using unsupported APIs - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Some Catalog Client Scripts do not work in Service Portal because using unsupported APIs
KB0623310

Some Catalog Client Scripts do not work in Service Portal because using unsupported APIs


7475 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Description

Catalog Client Scripts do not work in Service Portal when the UI Type is set to Desktop.

Steps to Reproduce

In Service Catalog:

  1. Navigate to a catalog item

    For more information, see the product documentation topic Service catalog items

  2. Right-click in the header and select Configure Catalog Client Script

  3. Click New and create a new onload client script with the following script content:

    function onLoad() { //Type appropriate comment here, and begin script below alert("test script catalog client script."); }
  4. Set the UI type as Desktop

  5. Save the catalog client script

  6. Navigate to Service Portal and open the catalog item there

    The URL resembles the following example:

    https://<Instance_name>.service-now.com/sp?id=sc_cat_item&sys_id=51b5d9170a0a0b0c00b519afdeb51697

Workaround

This is expected behavior. In Service Portal, only client scripts with the UI Type of Both or Mobile are loaded.

Set the correct UI Type, ensure the catalog client script is compatible with mobile scripting APIs - then Service Portal will execute them properly.


Related Problem: PRB676011

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.