---
sourceDocument: Australia API Reference
sourceDocumentLink: https://www.servicenow.com/docs/r/api-reference

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# g_service_catalog - Client

# g_service_catalog - Client {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The g_service_catalog API provides methods to access data in a multi-row variable set (MRVS) when a model is open.

This API is available in all environments, such as, Service Portal, ServiceNow AI Platform, Workspace, and Now® Mobile.

## g_service_catalog - getValue(String variableName) {#ariaid-title2}

Returns the value of the specified field on the catalog item form when used in a client
script on multi-row variable sets (MRVS).
Use this method when an MRVS modal is open for editing or creating and you want to modify
data within the MRVS based on the value of a field on the parent catalog item form. For
example, when you need to modify the contents of the cells within an MRVS based on a check
box on the parent form. You can also use this method to access the data of other MRVS
elements within the same parent form.  
Note:  
This method can only be called from the parent object, such as g_service_catalog.parent.getValue(). {#g_service_catalog-getValue_S__table_ed2_wwj_xnb__entry__3}

| Name | Type | Description |
|-|-|-|
| variableName | String | Name of the variable in the catalog item form to return. |
[Table 1. Parameters]

{#g_service_catalog-getValue_S__table_ed2_wwj_xnb} {#g_service_catalog-getValue_S__table_fd2_wwj_xnb__entry__2}

| Type | Description |
|-|-|
| String | Value contained in the specified variable of the catalog item form. |
[Table 2. Returns]

{#g_service_catalog-getValue_S__table_fd2_wwj_xnb}  
In this example, a catalog item for blocking multiple IP addresses on a firewall has a
variable <var class="keyword varname">address_type</var> with two choices - IPV4 and
IPV6. The MRVS has two variables (<var class="keyword varname">ipv4_address</var>
and <var class="keyword varname">ipv6_address</var>) for the respective address types. If the
Address type field on the parent form is set to
IPV4, the field IPV6 address is hidden on
the MRVS.

    function onLoad() {
      if (g_service_catalog.parent.getValue("address_type") == "ipv4") {
        g_form.setValue("ipv4_address", "XX.XX.XX.XX");
        g_form.setVisible("ipv6_address", "false");
      }
    }


