Catalog item only in service portal

RD9
Kilo Contributor
I have a catalog item (record producer), where I have added a macro variable which uses a Widget. My understanding is that Widget variable only works in Service portal. 
 
If that's correct, then how can I hide the catalog item when user access it via non-hub (service portal) view. i.e. from "View all Catalogs"
 
Thanks
RD
3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Rd,

So you want to hide the macro variable on non-portal view. But will hiding the macro variable make any impact while submitting the request.

you can have onLoad catalog client script and determine whether it is service portal view or other and based on that hide macro variable itself

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Hi Ankur. Thanks for your response.

 

No I dont want to hide the variable (macro with Widget). I wanna hide the catalog item itself from the list. 

 

User should access that catalog item from the Hub only. That way they can see the macro variable, which is required. 

 

Thanks.

Hi Rd,

Following links might be helpful:

https://community.servicenow.com/community?id=community_question&sys_id=17b1cf69db98dbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=6a5a0fa9db5cdbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=ae0b0faddb5cdbc01dcaf3231f96...

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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