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

@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

Hi @Ankur Bawiskar,

 

Initially I didn't write client script at all. I just used the UI Policy, but it didn't hide at the form level.

 

Regards

Suman P.

@Dave_p 

it didn't hide at form level, possibly because there must be some other catalog ui policy with higher order which is showing it and hence it overridden the one you created to hide it.

Other wise the approach I shared should work fine.

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