Want to display Stage field on My approval widget

jituksingh
Kilo Guru

Hi Friends,

My requirement is to display Stage Field on My Approvals widget under Requester.

find_real_file.png

So in above image we can see RITM number and who is requesting. Under requester field I want to display stage field. Please help me on that.

find_real_file.png

Regards,

Jitendra Singh

1 ACCEPTED SOLUTION

Geoffrey2
ServiceNow Employee
ServiceNow Employee

You will need to create a custom Widget by copying the existing Approvals widget, add the new field to it, then swap out the widgets on your Page(s).



Hold in Ctrl and right-click on the header, then select Widget in Editor.


find_real_file.png


Clone the Widget:


find_real_file.png



Give the new copy a name:


find_real_file.png



Add in the new field information in the Server Script (I added it at Line 48):


find_real_file.png



Put the new field into the HTML Template (I added it at Line 24):


find_real_file.png



Finally, replace the original widget with the new copy on the Page:


find_real_file.png


Find the new widget and drag it onto the Page above or below the original one.   Then remove the original.


find_real_file.png



Done!


find_real_file.png


View solution in original post

3 REPLIES 3

Geoffrey2
ServiceNow Employee
ServiceNow Employee

You will need to create a custom Widget by copying the existing Approvals widget, add the new field to it, then swap out the widgets on your Page(s).



Hold in Ctrl and right-click on the header, then select Widget in Editor.


find_real_file.png


Clone the Widget:


find_real_file.png



Give the new copy a name:


find_real_file.png



Add in the new field information in the Server Script (I added it at Line 48):


find_real_file.png



Put the new field into the HTML Template (I added it at Line 24):


find_real_file.png



Finally, replace the original widget with the new copy on the Page:


find_real_file.png


Find the new widget and drag it onto the Page above or below the original one.   Then remove the original.


find_real_file.png



Done!


find_real_file.png


Thanks Geoffrey! It worked.



Regards,


Jitendra Singh


Linda_G
Kilo Sage

Geoffrey, this is great, thank you.  How can I do this to see the stage of tasks as well as the stage of a change request.  Is that possible?