How to hide all variables under variable set

Sri56
Tera Contributor

Hi Team,

I have 65 variables under variable set.

How to hide all this 65 variables in one single script or any shortcut instead of writting g_for.setVisible() for all 65 variables?

 

Please help!

 

Thanks,

Sri

6 REPLIES 6

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You can hide the Variable Set simply by using a Catalog UI Policy. Why script?

With hiding only the Variable Set, all Variables will be hidden also.

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

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

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

Bhavana Reddy
Mega Guru

Hide the variable set it self than hiding the indivisual variables like below in the UI policy script(acux_general_new is the variable set name)

find_real_file.png

or else in the Ui Policy action directly you can hide the Variable set itself

 

Hello 

Instead of Going Through The Script Way ,Just Follow the Mark Approach and Give it  Try 

If Not get Desired Results ,Please let us Know 

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

 

Thanks

Hemant Kumar Ch

 

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Any follow-up needed? Or was my answer sufficient?
Let me know.

If your question is solved, please close the topic by marking my answer as correct. This will help others searching for a similar question and will remove the topic from the unsolved list.

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

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn