
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2018 06:50 PM
Hi,
I'm having an issue with the Approval Record widget on the portal, in one of my service catalog items I have 4 checkboxes, now if the chackbox has a value of false, I don't want it to show on the Service Portal Approval Record widget. I have a screen shot below where I have highlighted the fields.
However when I look at the exact same approval record in the app itself, the false fields are not showing, see the screen shot below
I think I need to some how modify this line of code in the Approval Record widget, but I'm not too sure what needs to be done.
<div ng-repeat="variable in item.variables | filter:{visible_summary:true}" class="m-b-xs" ng-if="variable_toggle">
If you need any further details please let me know and I will try and explain better,
Thanks in advance,
John.
Solved! Go to Solution.
- Labels:
-
Service Catalog
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2018 07:22 PM
include false in single quotes as it is a string type
<div ng-repeat="variable in approval.variables" ng-if="variable_toggle">
<label ng-if="variable.value != 'false'">{{::variable.label}}</label>
<div ng-if="variable.value != 'false'">{{::variable.display_value}}</div>
</div>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2018 07:58 PM
Please mark the answer as correct if my reply answered your question and this will help others to find it easily
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2020 12:23 AM
Hi John,
Can you provide complete HTML,because this approach not working for me.
Thanks,
Gopi