How to Set Widget Visibility... Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2016 12:12 AM
1. I have a requirement to have a particular widget for a special category of the Service Catalogs.
Please can you help me out in setting the visibility of particular widget over "sc_cat_item" page for a special category of the Service Catalogs.
2. Also, I want to hide the Submit Button on the "SC Catalog Item" widget for particular service Catalog.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2016 07:14 AM
Hi Ashish,
My knowledge of Service Portal is almost non-existent at this point. I wish I could offer help, but I'm not a subject matter expert in this area (yet). Sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2016 07:24 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2016 07:29 AM
fschuster - any thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2016 08:21 AM
Have your server part of the widget set "visibility" variables based on the according category (use case 1) and the according catalog (use case 2).
E.g. "if(myCategory == xyz)" - set a variable, e.g. "showCategory" to "false".
These variables could e.g. come from Widget Options or System Properties.
Then you will have to add an ng-show/ng-hide on the HTML level that evaluates the visibility expression and either shows or hides the <div> or the <button>.
E.g. (ng-show="showCategory") - meaning only if showCategory is true, we will display that element.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2016 02:35 AM
Hi Frank,
Thanks for the reply.
I am creating a widget that is responsible for accepting the usefulness of the Service Catalog Items:
Server Side Script:
All three Highlighted Logs Results are:
Please can you guide me in achieving the Selected Catalog's Category. None of the above logs are able to fetch the category.
Once I am able to achieve the Category I can easily compare and use ng-show in HTML against <div>