How to hide variable set on portal

Pratiksha KC
Tera Guru

Requirement is we have four variable sets and two variable sets should hide on portal but should visible on catalog task.

 

How can we achieve this? 

18 REPLIES 18

Pratiksha KC
Tera Guru

@Ankur Bawiskar @Nishant8 

 

Yes, we have mandatory variables inside the variable set. 

How can we achieve the output in this case?

Hello @Pratiksha KC, you have to make them non-mandatory first and then use your UI policy. your UI policy looks fine. Imagine if any variable is mandatory and you hide this, your Item will not qualify for submission.

 

Regards,

Nishant

@Pratiksha KC 

other variables within that variable set are mandatory -> doesn't matter

Only thing matters is the variables which you are trying to hide are made mandatory by some other UI policy

If yes then check that as it's a conflicting requirement.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hello @Pratiksha KC ,

 

Create one more UI Policy for making variables non mandatory and then use your existing UI Policy.

If my response was helpful, please mark it as correct and helpful.
Thank you.

Or you can use same UI Policy that will also work 

If my response was helpful, please mark it as correct and helpful.
Thank you.