Hide variable on multi row variable set

KaMmILa__
Tera Expert

I have a Multi-row variable set which I am using in a catalog item , how to hide a variable on that , I am not able to hide the Variable Using UI policy as the visible is grayed out

 

find_real_file.pngI also created a onload cS still not working 

find_real_file.png

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

Eg: I have location reference variable on my MRVS then I added location table to match it .

Quick Demo

 

 

find_real_file.png

 

Hope it will help you. 

View solution in original post

23 REPLIES 23

Hmm. I'm not seeing any errors or issues following the same, but it wouldn't be the first time something works in one instance and not in another. Is alert the very first line in the process() function? If not, make it that way and see if you see the alert. 

Other, load the RITM and check the console (in chrome ctrl-shift-J, or 3 dots , more tools and developer tools and see if any client-side errors are being thrown. 

Devil is always in the details. 

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

I added the alert on the 1st line and I see the alert when I open the RITM, The client script on the catalog item is triggered.

below are the error logs from the consolefind_real_file.png

Gaurav Shirsat
Mega Sage

Hi

It not possible to Hide Variables of MRVS.

This won't be possible using any catalog client scripts because MRVS gives you Grid View.

UI policy written inside multiset variable set has this visibilty field as read only and can't be selected as false.

That won't work if you've got any mandatory fields in the set. First, you have to set them all not mandatory.

Steps 

1. Create a new UI-policy

2. Specify the conditions

3. Create new UI Policy Actions (specify Mandatory/Visible/Read only)

 https://community.servicenow.com/community?id=community_question&sys_id=7e90887cdbc53740fff8a345ca96...

Please Mark Correct and Helpful

Thanks and Regards

Gaurav Shirsat

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Up to Paris release... not possible. With the Quebec release possible.

Read about it in one of my recent articles:
Hiding Multi-Row Variable Set Variables

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Thanks @Mark Roethof