Service Portal: Hide Required Information Box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2017 06:14 AM
Is there a way to easily hide the "Required Information" box which lists out all the Required Fields on the Service Portal, but just for a particular Catalog Item (and not across the board for all Catalog Items)?
I am using Helsinki.
Thanks
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2017 06:49 AM
Hi Joe,
You will have to make the changes in SC Catalog Item.
You will have to make the changes in html section in the below mentioned snippet.
<div ng-if="hasMandatory(mandatory)" class="alert alert-info" style="margin-top: .5em">
<span ng-if="hasMandatory(mandatory)">${Required information} </span>
<span ng-repeat="f in mandatory" class="label label-danger" style="margin-right: .5em; display: inline-block;">{{::f.label}}</span>
</div>
Here you can check the item in ng-if table and condition should be only true when item is other than that item.
Hope this helps.
Regards
Ujjawal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2017 06:55 AM
Thanks for the Reply.
I am afraid I don't understand how to do what you are suggesting. Where exactly do I go to enter that code in?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2017 07:01 AM
Hi Joe,
You can add one more condition with ng-if="hasMandatory(mandatory)" . In this condition you can check that catalog item is other than the item where you do not want required information.
Regards
Ujjawal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2017 07:22 AM
I thought that box was an "out-of-the-box" setting that comes with Service Portal. It appears at the bottom of our Service Portal forms, i.e.
Maybe that is not the case? I may have to get together with our Service Portal programmer. I am not sure what that widget is named, so I don't really know how to find it. I have only done some simple Service Portal work, and not any customized widgets.