Created
January 21, 2019 15:55
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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