The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Show Variable from Variable set through UI Policies for one Particular Item

Mike15
Tera Contributor

Hello Now 

We have Variable set called "Location Info" and that Variable set is Included in 400 Items 

We have one Variable called "Geography" which we want to show for one particular item and Hide it to remaining Items 

We want to achieve this through No scripting with UI Policies ,Can these done through UI Policies ?

We have already sol with Onload script but we want to go with UI Policies 

Please suggest no scripting way 

1 ACCEPTED SOLUTION

Hi,

Since you want to hide for all other catalog items you cannot create multiple Catalog UI policies on those catalog items

So go with onLoad client script

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

I don't think you can use UI policy for this

1) if you use Catalog UI policies which applies to variable set then it would apply for all items

Did you try to use Catalog UI policy which Applies to particular Catalog Item and try selecting variable within that variable set.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi,

Since you want to hide for all other catalog items you cannot create multiple Catalog UI policies on those catalog items

So go with onLoad client script

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Mike 

Did you get a chance to check on my above approach?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

chsumit
Kilo Expert

Hi,

You can write UI policy on variable set to hide for all items and write a client script on Catalog item level to make it visible for specific item.

Thanks,

Sumit