Hide Variable Column From Multi-Row Variable on Service Portal

JJG2
Kilo Explorer

I have a variable in a multi-row variable set. I do not want the variable name to appear in the columns that are displayed on the service portal:

find_real_file.png

 

I have set the variable to "Hidden" and it the column is still there. I have set it to non visible via Catalog UI Policy, and it is still there. How can I make the column go away?

5 REPLIES 5

Allen Andreas
Administrator
Administrator

Hi,

 

If that variable is part of the variable set, then the column header will show, regardless of the UI Policy. You'd have to remove that variable from the set for the column header to go away.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

I created Catalog UI Policy in the variable set itself

Hi,

Unfortunately, as I mentioned above (you may not have seen my edit after I posted what I did originally), you're unable to hide a column header in an MVRS if the variable exists as part of the set. So even if you hide the variable per UI Policy, it doesn't affect the column header as the variable is part of the set.

So you'd have to remove the variable from the set in order for it to disappear from the column header.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi JJG,

To hide a mrvs column, it's necessary to use DOM manipulation. It can't be done using UI Policy or non-DOM manipulation script because ServiceNow doesn't assign id to mrvs columns so it's not possible to distinguish columns by id or class. It's necessary to use DOM manipulation to hide the hide based on column position.