Only run a Catalog client script when part of an order guide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2013 07:55 AM
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!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2013 04:30 PM
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}).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2013 07:08 PM
Very creative Terri! Thank you very much!