Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2025 11:30 AM
Thank you! The catalog client script to identify if the item is part of an order guide really helped me! I was able to successfully complete the script to hide fields not needed when the order guide is used!
For anyone else who wants to do the same thing, here is the full script add to the catalog item:
function onLoad() {
if (typeof g_service_catalog !== 'undefined' && g_service_catalog.isOrderGuide()) {
// List of variable names to hide
var varsToHide = ['employee_s_current_ad_information', 'full_name', 'title', 'department', 'email_address', 'formatter'];
// Hide each variable
varsToHide.forEach(function(varName) {
g_form.setDisplay(varName, false);
});
}
}