- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2019 06:45 AM
Hi,
When I mark 'Visible on Guides' as false, it doesn't show the item variable on order guides, which is the functionality I want. However, it also hides it when I am ordering an individual item that is not an order guide on the portal (It does, however, appear to show it on the native UI). Is this expected behaviour?
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2019 02:37 AM
I resolved this by manually checking if the current record is an order guide in a catalog client script, using the following code to check and hide the field:
if(g_service_catalog.isOrderGuide()) {
g_form.setDisplay([field_name], false);
g_form.setMandatory([field_name], false);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2019 08:03 AM
Hi,
this should be related to the following known issue:
https://hi.service-now.com/kb_view.do?sysparm_article=KB0718679
You might need to upgrade your instance at least to the Patch 5 Hot Fix 1 and check if you will have the same behaviour.
Hope this fit your need.
If I have answered your question, please mark my response as correct and/or helpful so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
Thank you
Cheers
Alberto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2019 02:37 AM
I resolved this by manually checking if the current record is an order guide in a catalog client script, using the following code to check and hide the field:
if(g_service_catalog.isOrderGuide()) {
g_form.setDisplay([field_name], false);
g_form.setMandatory([field_name], false);
}