Create a catalog client script

Follow this procedure to create a catalog client script.

Procedure

  1. Navigate to Service Catalog > Catalog Policy > Catalog Client Scripts. A list of current custom catalog client scripts appears.
  2. Click New.
  3. Fill in the fields, as appropriate (see table).
  4. Click Submit.

What to do next

Field Description
Name Enter a unique name for the catalog client script.
Applies to Select the item type this client script applies to:
  • A Catalog Item: enables the Catalog item field.
  • A Variable Set: enables the Variable set field.
Active Select the check box to enable the client script. Clear the check box to disable the script.
UI Type Whether to apply this to desktop, mobile, or both.
Script Enter the client script that should run on the service catalog item.
Type Select when the script should run, such as onLoad or onSubmit.
Catalog item or Variable set Select a catalog item or variable set from the list. The field name and options available depend on the selection in the Applies to field.
Applies on a Catalog Item view Select the check box to apply the catalog client script to catalog items displayed within the order screen on the service catalog.
Applies on Requested Items Select the check box to apply the catalog client script on a Requested Item form, after the item is requested.
Applies on Catalog Tasks Select the check box to apply the catalog client script when a Catalog Task form for the item is being displayed.