How to make MRVS particular fields visible in one item , if it is attached to multiple catalogues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
55m ago
I have one MRVS, in which there are total 30 fields, which is included in 4 catalogues, Now I have added 10 more fields in the MRVS , but now those 10 fields should be visible in only 1 catalog but not in other three. I tried UI policy on catalog item, but it doesn't shows multi row variable set field to make it hide. What should be the solution for it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
22m ago
Hi @singhkritik
Inside the 3 target catalog items , create an onLoad catalog client script with this sample script.
If needed, you can use onChange catalog client script as well.
function onLoad()
{
g_form.setDisplay('mrvs_variable_name_1', false);
g_form.setDisplay('mrvs_variable_name_2', false);
// Add all 10 fields you want to hide
}
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti