UI Policy on "Also Request For"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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:
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Oh I see I misunderstood, apologies.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
as per documentation
“Catalog client scripts, catalog UI policies, and g_form() APIs are not applicable for the Also request forfield.“
See reference: