In Service Portal, variable set is not hidden when using g_form.setDisplay(<variable set name>, false) in a Catalog Client Script.

Steps to Reproduce


  1. Navigate to Service Catalog > Catalog Definitions > Maintain Items and select the Standard Laptop item.

  2. Under Related Links, go to Variable Sets and click New.

  3. Add a variable set named Test and click Submit.

  4. Select the variable set and click New under Variables.

  5. Add a variable to the variable set with the following values:

    Question: Test var.
    Name: test_var
    Type: Single Line Text.

  6. Return to the Standard Laptop item and under Related Links, go to Catalog Client Scripts and click New.

  7. Add a client script with the following values:

    Name: hide test.
    UI Type: Both
    Type: onLoad
    Script: function onLoad() {
       //Type appropriate comment here, and begin script below.
       g_form.setDisplay('test', false);

  8. Navigate to Service Portal > Order Something > Hardware > Standard Laptop.

    Note that although in Service Catalog the Test variable set is hidden, it is displayed in Service Portal.


The intent with Service Portal is to enable our customers to provide modern, easy-to-use, device agnostic experiences for their end users or requestors. We do not intend to provide full feature parity between the Platform experience and the Service Portal experience. However, we do understand that you may have built out catalog item forms that are fairly complex and do not render well in the Service Portal today. Hopefully, the updates provided in the link below will help you overcome some of those challenges.

If they do not, there is an update set within the link that adds 2 new fields to the sc_cat_item table using iFrames but has changes that mask the iFrame experience.

Before using the update set, please understand:

  • This approach is not a product offering, but only provided as an option that you can use, if you choose to do so. There will be NO SUPPORT for this.
  • This is intended to be a short-term option so you can continue to use the Service Catalog on the Service Portal, while you set in motion plans to transform your catalog item forms to fit the Service Portal experience.



Related Problem: PRB718745

Seen In

Helsinki Patch 4
Helsinki Patch 5
Helsinki Patch 6 Hot Fix 1

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:42:55