Make variables mandatory in Requested Item- RITM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 11:09 AM
In Service catalog we have variable 'Region' , based on the region selected in service catalog ,Assignment group populated in Requested Item - RITM.
If the assignment group is 'XYZ' then the variable 'Query' in the RITM should be mandatory.
How to do this?
@Ankur Bawiskar @Community Alums
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 11:27 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 11:36 AM
Hi,
You can create an OnLoad catalog client script that runs on sc_req_item table and runs only on requested item view.
function onLoad() {
if(g_form.getValue('assignment_group')=='SYSID of Group')
{
g_form.setMandatory('variable_name',true);
}
Assignment group should be available on the sc_req_item so that getValue method works fine.