Skip to content

Instantly share code, notes, and snippets.

@gesslar
Created January 21, 2019 15:55
Show Gist options
  • Save gesslar/296cc17e9dcc703637d51e391296ff8f to your computer and use it in GitHub Desktop.
Save gesslar/296cc17e9dcc703637d51e391296ff8f to your computer and use it in GitHub Desktop.
Determining if the current item is part of an Order Guide in ServiceNow Client Script
function onLoad() {
var isOrderGuide = g_service_catalog.isOrderGuide();
if(isOrderGuide) {
g_form.addInfoMessage("We're part of an order guide!");
} else {
g_form.addInfoMessage("We are not a part of an order guide.");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment