Issue
Approvers can hide the unchecked options on an approval request. This article explains how that works and how to hide these options.
Release
All releases.
Resolution
As an approver, to view requested approvals:
- On the Service Portal home page, in the menu, select Approvals.
- Select any existing approval.
- Under Approval request for Request REQXXXX, select the Options arrow to open it.
Under Options, some variables display with the default value of false. These are the checkbox variables that were not selected or checked at the time of submission of items.
The items marked as false can be hidden from the Options list.
To hide these variables in the Options list:
- Go to Service Portal > Widgets. The widget name is Approval Record.
- Select Clone Widget to create a copy of it.
- On the cloned widget, modify the Body HTML Template section as follows:
Find the line that says:
<div ng-repeat="variable in data.variables | filter:{visible_summary:true}" ng-if="variable_toggle">
Replace the next two lines with following:
From
<label>{{::variable.label}}</label>
<div>{{::variable.display_value}}</div>
To
<label ng-if="variable.display_value != 'false'">{{::variable.label}}</label>
<div ng-if="variable.display_value != 'false'">{{::variable.display_value}}</div>
Related Links
This knowledge article is based on a community article, Service Portal Approval Record widget