How to Hide variable from variable set for particular item

nagaklv
Tera Contributor

Hello Community,

Can anyone help us.

We have variable set with few variables and we are this variable set for couple of catalog items,

Our case we want hide particular variable in one catalog item how to do this tried with catalog client script onload and ui policy and it's not working still visible in portal Can anyone help us with solution for this

Please note this variable is mandatory in variable set

Thanks,

Nagesh

1 ACCEPTED SOLUTION

Tim Kulhavy
ServiceNow Employee
ServiceNow Employee

Hey! Using a catalog ui policy should be the easiest solution. Set the catalog ui policy to apply on the specific catalog item, build your condition (leave empty if it should always apply) and then use an UI policy action where you set the variable from the variable set to Mandatory -> false and Visible -> false. The other attributes can stay with "Leave alone".

This should work in Service Portal as well.

 

The UI policy action could look like this: (Standard Employee Questions is the variable set in this example)

find_real_file.png

View solution in original post

27 REPLIES 27

Thanks for the help tried with UI policy and able to solve the issue

how to make a variable with type macro visible which is in a variable set and this variable set is used by most of the catalog items  

find_real_file.png

Can you post this as separate question as this thread is already answered?

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

I agree.

Posted it separately.

https://community.servicenow.com/community?id=community_question&sys_id=83691b251b98c514a59033f2cd4bcbe1

Please answer.

I have tried this and it is not working.