- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2017 01:13 AM
Is it possible to hide the false value.
below are the screen shots showing the catalog item containing the check boxes.
here i have checked one checkbox only but in portal it is showing true value along with false value.I want only true values should be displayed.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2017 02:22 AM
It comes from widget Ticket Fields. Below code in HTML template needs to be modified. You may need to clone the widget to make changes.
<div class="m-b break-word" ng-repeat="variable in data.variables">
<div ng-if="variable.type !='7' || (variable.type =='7' && variable.display_value != 'false')">
<label class="m-n">{{variable.label}}</label>
<div>{{variable.display_value}}</div>
</div>
</div>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2021 10:59 AM
Hi Gurpreet,
It worked. Thanks.
But it creates empty space in place of checkbox 'false'. Is there any way to remove those?
Thanks
Santhosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2017 02:36 AM
Seems like it require more changes
<div class="m-b break-word" ng-repeat="variable in data.variables">
<div ng-if="variable.type !='7'">
<label class="m-n">{{variable.label}}</label>
<div>{{variable.display_value}}</div>
</div>
<div ng-if="variable.type =='7'">
<label class="m-n">{{variable.label}}</label>
<div ng-if="variable.display_value != 'false'">${Yes}</div>
<!-- Comment Below Line if you don't want 'No' Values to be displayed -->
<div ng-if="variable.display_value== 'false'">${NO}</div>
</div>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2018 08:57 AM
Hi,
I have a variable called 'u_ssn', need to hide from ticket page so how should I achieve this.
Please help me out ASAP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2018 08:57 AM
Hi,
I have a variable called 'u_ssn', need to hide from ticket page so how should I achieve this.
Please help me out ASAP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2018 09:19 PM