the unchecked check boxes is giving false value in portal.

kushi1
Tera Contributor

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.

1 ACCEPTED SOLUTION

Gurpreet07
Mega Sage

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>


View solution in original post

14 REPLIES 14

Gurpreet07
Mega Sage

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>


This helped me a lot.


thank you


Hi Gurpeet,



Is there any way to replace "true" with "yes" and "false" with "no" in the service portal view:



serviceportal_checkbox.jpg



Best regards,


Yes you can, simply use yes since we are already filtering out false values



<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>${Yes}</div>


</div>