How to hide catalog item variables in order guide and RITM level
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 10:00 AM
I have used below catalog client script on catalog item to hide variable on order guide level, it's working as expected but it doesn't hide the same variable on RITM level(see attached for reference)
function onLoad() {
//Type appropriate comment here, and begin script below
var isOrderGuide = g_service_catalog.isOrderGuide();
if(isOrderGuide){
g_form.setMandatory('what_is_the_user_s_group',false);
g_form.setDisplay('what_is_the_user_s_group',false);
}
}
However, once I submit order guide, RITM that got created still shows field in the variables
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 05:49 PM
Ah, yea it won't work on SCTASK as you will have to dot-walk.
Might be easier just to use g_scratchpad instead of a script include.