Only run a Catalog client script when part of an order guide

Mlombardo
Kilo Expert

Hi Everyone,

I have a Catalog client script that I am only trying to run when the item is used in an order guide. If the item is being entered outside of the oder guide (through the service catalog) I do not want the script to run. Does anyone know a condition that will achieve this?

Basically I'm am hiding cascaded variables when in the order guide (user information) but if the items are ordered individually I would need the user information.

Thank you!!!

2 REPLIES 2

TJW2
Mega Guru

I have done this in the past by creating a variable on the Order Guide (order_guide checkbox) or Variable Set that contains your cascading variables.
Create a Client Script (onLoad) on the Order Guide to set the variable to 'true', hide the variable.
On the Item or in your Variable Set that contains your cascading variables, your Client Script can check the variable (if (order_guide){hide variables}).


Mlombardo
Kilo Expert

Very creative Terri! Thank you very much!