How to hide a field defined in a variable set in a service catalog

johannes5
Giga Expert

Hi ServiceNow Community Developers,

I have the following situation: I added a field in a variable set that is used by several items however I only want this field to be visible in one specific catalog item but right now its visible on all the catalog items. It looks like the UI policies that I am familiar with on incidents and other modules don't seem to apply the same way to the Service Catalog. Would you please advise as to what do I need to do in order to get this variable to display in the catalog item the way I want it to.

Thanks,

Johannes

1 ACCEPTED SOLUTION

Subhajit1
Giga Guru

The easiest and IMO, the correct way would be to remove this particular Variable from the Variable Set and add it to the list of variables on the Catalog Item on which you would like to see this.


Otherwise, you can write a OnLoad Catalog Client Script to hide the variable on each Catalog Item save the one in which you would like to see it.


View solution in original post

9 REPLIES 9

I have marked this discussion as a question. Johannes Mweli feel free to mark the correct and helpful answers as you see fit.


johannes5
Giga Expert

Hi Subhajit,



I wanted to mark it as answered however I cannot see the link where I can do that, it just does not show it to me. Do you know how / where can I do that? I can see the link in my other questions but not in this one. I am really confused.



Thanks,


Johannes


This is posted as a discussion and hence you will not be able to mark the answer .. You may like the 'Answer' here


You can ask an admin like Lawrence Eng to change it to a question and then mark it answered.


Other admins you can tag include Dan Bruhn and bianca.vaccarini.