How to hide unchecked checkbox variables in "Options" of todo Approval task

AgatheL
Tera Guru

Hi Expert,

 

would anyone know how to hide the uncheck checkbox variables in options of todo approval task.

KB: Service Portal: How to hide unchecked checkbox variables in "Options" of Approval Widget. - Support ... indicate how to hide them from the approval record but I couldn't find a way to apply the same in the todo approval task.

Would anyone know ?

 

Thanks

Agathe

1 ACCEPTED SOLUTION

palanikumar
Mega Sage

Hi,

I think the widget is updated. The variables are configured in "Variable Summarizer" widget. You can try the following steps:

1) Open widget with name "Variable Summarizer"

2) In HTML body replace line 22 from "<span ng-switch-default class="pre-wrap">{{::variable.display_value}}</span>" with the following:

<span ng-switch-default class="pre-wrap" ng-if="variable.display_value != 'false'">{{::variable.display_value}}</span>

Thank you,
Palani

View solution in original post

4 REPLIES 4

Susan Britt
Mega Sage
Mega Sage

Verify the details being shown on your Approval to-dos for the various tables (e.g., HR Case vs REQ).  You can do this from the "To-dos Configuration".  Be sure to look at the related lists/tabs for the Widgets being used, configuration details, task configuration, etc.  There isn't one answer for all approvals.

Hi Susan,

 

thanks for looking into my question.

I looked from the to-do configuration but didn't find a was to not display in the approval todo task the checkbox variables whcih have a false value. Would you be able to provide me more details?

Thanks

palanikumar
Mega Sage

Hi,

I think the widget is updated. The variables are configured in "Variable Summarizer" widget. You can try the following steps:

1) Open widget with name "Variable Summarizer"

2) In HTML body replace line 22 from "<span ng-switch-default class="pre-wrap">{{::variable.display_value}}</span>" with the following:

<span ng-switch-default class="pre-wrap" ng-if="variable.display_value != 'false'">{{::variable.display_value}}</span>

Thank you,
Palani

AgatheL
Tera Guru

Hi Palani,

 

thanks a lot, that worked. 

Additionally would you know how we could display the label variable in the widget ? (We have built a mutliple choice with label and checkbox variables).

 

Many thanks,

Agathe