Service Portal Approval Record widget

JohnMMcLaughlin
Tera Contributor

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.

find_real_file.png

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

find_real_file.png

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.

1 ACCEPTED SOLUTION

Venkat122
Kilo Guru

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>


View solution in original post

6 REPLIES 6

Please mark the answer as correct if my reply answered your question and this will help others to find it easily


Hi John,

     Can you provide complete HTML,because this approach not working for me.

 

Thanks,

Gopi