The Zurich release has arrived! Interested in new features and functionalities? Click here for more

UI Policy on "Also Request For"

daniellebell
Tera Guru

Hello Community,

 

My team has a requirement to use a Request For variable type and to enable the Also Request For option for a catalog item.  The catch is that if the Also Request For option is selected, and that variable is populated, we need to remove or hide a different variable on the form.  We have been unable to figure out to make this work.

 

Both the original "Request For" and the subsequent "Also request for" have the same variable name:  

daniellebell_0-1756310717332.png

However, writing a UI Policy, or a client script, on that field name only returns values from the "Request For" field and not for the "Also request for" field.

 

Has anyone had any luck writing a UI Policy on the "Also request for" portion of this variable type?

 

Much Appreciated.

 

7 REPLIES 7

Oh I see I misunderstood, apologies.

daniellebell
Tera Guru

The official response from ServiceNow Support:

 

SOLUTION PROPOSED:
Per our documentation:
===
Catalog client scripts, catalog UI policies, and g_form() APIs are not applicable for the 'Also request for' field.

NEXT STEPS:
We apologize for the inconvenience.
Given that, however, you may consult with Professional Services about this requirement to see if this is possible through alternative methods that Support cannot provide.

 

Rafael Batistot
Kilo Patron

Hi @daniellebell 

 

as per documentation 

 

Catalog client scripts, catalog UI policies, and g_form() APIs are not applicable for the Also request forfield.

 

See reference:

 

https://www.servicenow.com/docs/bundle/zurich-servicenow-platform/page/product/service-catalog-manag...