Make Catalog Item Variables Not Mandatory on RITMs

jmoore
Mega Expert

Hi,

My company implemented a Service Catalog earlier this year, and after implementation found that variables from the catalog items that may have been hidden/made not mandatory by UI policies or scripts, are showing up as mandatory on the requested items.

find_real_file.png

Based on community posts, I see this could be due to a number of reasons:

1) We marked variables as mandatory.

find_real_file.png

2) For catalog UI policies and scripts, we did not check "Applies on Requested Items".

find_real_file.png

Given we may have made some mistakes initially, does anyone have any recommendations on the best way to make variables on the requested items not mandatory? For example:

  • Is there a script that can be written to make the variables not mandatory on the requested item form
  • Should we go back to every variable and make it not mandatory, and then make the variable mandatory on the catalog item via UI policy or script
  • Should we create a UI policy for each variable to make it not mandatory on the Requested Item form
  • Should we update all the UI policies and scripts to make them apply on Requested Items

I am relatively new to ServiceNow so any advice on best practices regarding variables would be greatly appreciated. Also, my company will be upgrading from Fuji to Geneva or Helsinki soon, so I am concerned about anything that may break in an upgrade and overall maintainability of the Service Catalog.

Thanks!

2 REPLIES 2

Gurpreet07
Mega Sage

Hi Jessica,


Check is there is already a script setting those variables mandatory. You could create a new onLoad catalog client script to set variables non mandatory. Make sure to unckeck 'Applies to catalog item view' and check 'Applies to request item','Applies to catalog task'.


Thanks for your suggestions. For a new onLoad catalog client script, is there a way to query for all the variables and mark them not mandatory via a script? Or am I missing something more obvious?