Restrict approver field in Incident, Service request and release catalog items

Gnana Prasuna 1
Tera Contributor

Hi,

 

Currently I'm facing issue in catalog items. 

I have added approver field in change catalog form using variable set. Same variable set is used for multiple catalog items. And I'm working in domain separation environment.  

Now, I want to display approver field only in change catalog items and hide in remaining catalog items.

Tried with catalog UI Policy and it's only applied to particular catalog item for one domain. But, using one script I want to hide the approver field in remaining multiple catalog items for various domains.

 

Could anyone help me on this...

 

Thanks in advance.

 

Regards,

Gnana

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Gnana Prasuna 1 

yes this is possible.

You can use onLoad catalog client script which Applies to your Variable set

1) check the browser URL

2) you get the catalog item sysId

3) then check if the sysId is for Change catalog item and if yes then show, if not then hide it

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

Hi @Ankur Bawiskar ,

Thanks for the replay...

I want to restrict the field in multiple catalog items as I am working in domain separated environment.

If I use catalog item sysId then It'll applicable for only one catalog item.

Is there any alternative solution for this..?

 

Thanks & Regards,

Gnana Prasuna

 

@Gnana Prasuna 1 

no other way and it should not impact domain separation

That's the only and easiest way.

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

@Ankur Bawiskar ,

It should be applicable for all domains change catalog items.

Regards,

Gnana