Show variables in catalog task

anvitha ash
Tera Contributor

Hello Developers,

 

We have a catalog item in which we have  5 variables (lets say, var1, var2, var3, var4, var5)

 

Expectation:

When user opens the catalog form in portal the user should see only 3 variables var1, va2, var3 in the form and  variables var4, var5 should only be displayed in catalog task.

 

current configuration:

Currently all 5 variables are visible in both catalog item form and in catalog task as well

 

 

3 REPLIES 3

Bert_c1
Kilo Patron

Hi Anvitha,

 

Seems you may be able to accomplish what you want using Variable Sets. See:

 

https://docs.servicenow.com/bundle/utah-servicenow-platform/page/product/service-catalog-management/...

 

and the section on Multi-row Variable Set.  Test from there has:

 

"You can define catalog client scripts, catalog UI policies, and catalog data lookups for an MRVS. Visibility is honored just on the MRVS form and not in the list."

 

You can wait for others here to post. Hopefully someone will provide an example or alternative.

Sohithanjan G
Kilo Sage
Kilo Sage

Hi @anvitha ash ,

You can create Catalog UI Policy to have visibility of those over Catalog Item view & Catalog Task view with the below checkboxes. You can give UI Policy actions without giving any filter conditions, so it will work onLoad.

Sohith1_0-1691435388678.png

 

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)