In a scoped application, if you have a catalog item/record producer that has variables of type Macro, an onload or onchange catalog client script does not hide the Macro variables.

Steps to Reproduce


  1. Import the attached update set and commit it.

  2. Navigate to System Applications > Applications.

  3. Look for the setVisibleTest application and open it.

  4. Under the Application Files tab, look for the Catalog item SNC Test.

  5. Click Try It.

    Note that when the catalog item loads, the macro button variable should be hidden (via the onload client script that uses the setDisplay function) but it is still visible.


Use the g_form.setVisible function instead of the g_form.setDisplay function.

Related Problem: PRB1259274

Seen In

There is no data to report.

Intended Fix Version


Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-03-13 21:18:13