In a Service Catalog, hide a variable at the form level and display at the RITM and SC_TASK level

Dave_p
Giga Guru

Hi,

I have a requirement. In a Service Catalog, hide a variable at the form level and display it at the RITM and SC_TASK level. Can anyone please give me any suggestions? Kindly help.

Regards

Suman P.

2 ACCEPTED SOLUTIONS

Dave_p
Giga Guru

Hi,

 

Your answers are only partially true. This is what worked.

 

1.png

 

2.png

 

3.png

 

4.png

 

Regards

Suman P.

View solution in original post

@Dave_p 

May I know how my response is partially correct.

Your original question was to hide the variable at catalog form level and show on RITM and SC Task

For that I mentioned to use Catalog UI policy which applies on Catalog Form only and hide

This catalog ui policy won't run on RITM and SC Task and hence it won't hide.

Why you require 1 catalog UI policy and 1 catalog client script? -> Not required ideally

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

7 REPLIES 7

Bhavya11
Kilo Patron

Hi @Dave_p 

 

You can create catalog ui policy to hide the variable in catalog item level.
Create Catalog UI Policy and add the Catalog  Ui policy action for those variables  as well then uncheck the Applies on a Catalog Item view

and check then

Applies on a Catalog task

Applies on a Requested  Item

 

Thanks,

BK

Ankur Bawiskar
Tera Patron
Tera Patron

@Dave_p 

it's simple

Create a catalog UI policy to hide that variable and make sure you select this so that it only runs on form and not on RITM or SC Task

Applies on Catalog form - True

AnkurBawiskar_0-1747742555999.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Papai Ghosh
Tera Contributor

HI @Dave_p ,

Don't deactivate the field ,then you can simply write one Ui Policy on that field to make it hide. I think that will solve the issue. And if you are populating the hidden field with some predefined values then that will be cherry on top you also got those values in the RITM and Task level.

I think that will solve your issue.😊

Dave_p
Giga Guru

Hi,

 

Your answers are only partially true. This is what worked.

 

1.png

 

2.png

 

3.png

 

4.png

 

Regards

Suman P.