Hide order guide variables in choose options?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2018 04:19 AM
Hello Everyone,
I have created a variable set which I use in Order Guide and also in the catalog items that will be used in order guide.
Once I enter the data in variables of the variable set I am looking for a way to hide this variables in the variable set in the 'Choose Options' section on Order guide because they are the same variables appears in the all catalog items of order guide and make the form look ugly.
I have tried the below onload script and its working only in describe needs section and cannot hide fields in Choose options.
function onLoad() {
//Type appropriate comment here, and begin script below
var item= gel("current_item");
var guide = gel("sysparm_guide");
alert('start');
if (item != null && guide != null && item.value == guide.value)
g_form.setMandatory('requested_for',false);
g_form.setDisplay('requested_for',false);
}
Any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2018 07:15 AM
Hi harish,
I am using the same variable set in the Describe needs step and for the catalog items which will come in the Choose options.
Is it the issue here???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2018 07:34 AM
Hi
Try using UI policies to hide the variables in the specific catalog items instead of order guide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2019 08:33 PM - edited 09-24-2023 11:05 PM
Hi Naveen,
I know this is a slightly older post but please take a look at my solution provided at the following link.
I think this information will solve your issue.
Let me know if this worked for you.
Brent
P.S. If my suggestion helped then please mark as helpful and/or correct so other community members can benefit from this information.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2019 09:53 PM
Hi
there is no need to write any script
You have to use catalog UI policy right click on choose option:
Then don't set any condition in UI policy just write the short description and save the form
then use UI Policy Action write 4 UI policy action in ui policy action select your variable set and set visible false for each one
Please Mark Correct and Helpful if it helps
Thanks and Regards
Himanshu Dubey
DxSherpa

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 03:37 AM