Make comment mandatory when rejecting an approval on Employee Service Portal

HarI98
Tera Expert

Hello community,

On the Employee Service Center (/esc) portal, when you click "My Tasks" in the top right, you are taken to the page "hrm_todos_page" which contains a main widget(parent) "HRM Todos Summary" which hosts many other widgets one of them being "Todos Approval Actions" (child).

I cloned the "Todos Approval Actions" widget to make some customizations, but now I am stuck unable to figure out how this "child" widget lets say is called. Sure I see the line where the parent widget calls all of its child widgets based on some value on the HTML Template line 69

<sp-widget widget="todoLine.todoLineWidget"></sp-widget>

But I need to adjust it somehow so this parent widget, calls the newly cloned customized child widget.

Anyone have any idea where I can make this change?

3 REPLIES 3

suvro
Mega Sage
Mega Sage

You just have to change the name of the widget here

<sp-widget widget="<name_of_newly_customized_widget"></sp-widget>

This part I understand, but the thing is there is logic already that retrieves the value from somewhere and sets it in that variable in the code I posted above. But I cannot figure out how as the code is entangled.

If I just changed the above line of code to hardcode the widget I want, it would break the entire widgets functionality. That is why I need help figuring out based on what is it getting the toDoLineWidget variable values, and make necessary adjustments there.

HarI98
Tera Expert

Okay so the parent widget is calling "todo-approval" widget which in turn calls the "todo-approval-actions" widget. Now to figure out how to call the cloned "todo-approval" widget