Configuring variable display on RITM and catalog task

rhofing
Tera Contributor

I have a catalog item that permits a user to request a new virtual machine or make changes to an existing virtual machine. The fields (variables) thats must be completed will be different depending on the selection (New VM or Modify VM).

I would like to display on the RITM record and the task records Variables tab, only the appropriate variables depending on the the choice (New or Modify).   I am not certain how to do this.

Thanks!

Ric

1 ACCEPTED SOLUTION

randrews
Tera Guru

I would create a show policy for each of the selections... with reverse if false checked and check all three options for applies to <tasks items and form>



then in each policy create a show action for the fields that should show for that option <you will need two policies one for physical one for virtual>



the alternate method is to use ONE policy and set it for say physical... set the variables for physical to show and the virtual to hide   that way if it is physical the virtual ones hide and physical show... if virtual the opposite.... i do not recommend this method if you are showing "none" as n option for the type of server... as I don't like the variables to show if they aren't needed and in this case the victuals will show even when it is none


View solution in original post

17 REPLIES 17

Chuck Tomasi
Tera Patron

Hi Ric,



When you configure the form layout (or form design) be sure to include the Variable Editor in the fields.



find_real_file.png



Form Design - ServiceNow Wiki


manikorada
ServiceNow Employee
ServiceNow Employee

Ric,



there will be two checkboxes on the UI polcies you are using to hide these variables which are 'Applies to RITM' and 'Applies to Catalog Task'.


If you mark them as True, then these UI policies will run on RITM/ Catalog Task also.


Thank you to everyone, your suggestions helped me solve my issue!



Ric


You are very welcome. What did your solution turn out to be?