Item variable - Marking 'Visible on Guides' as false hides it everywhere on Portal!

Shane18
Kilo Expert

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?

1 ACCEPTED SOLUTION

Shane18
Kilo Expert

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);
   }

View solution in original post

2 REPLIES 2

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

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

Shane18
Kilo Expert

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);
   }