Activating Cloned Widget

kevinthury
Tera Guru

Our objective is to add a Rejection Comments box to the portal and make mandatory should something be rejected.   I followed these instructions but did not see the desired results on the portal   I suspect it is using the original, unaltered 'Approval info' widget.

I have cloned the 'Approval info' widget outlined in the ServiceNow doc (https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/build/service-portal/task/t_Clo...) and am struggling with one aspect which is the "What to do next" section.   The instruction hint at cloning an Angular ng template (which is admittedly very foreign to me).

There is a hint that whatever template I need to focus on is identified in the HTML template, which is visible in the screenshot below.

Can one of you provide any direction on this?

find_real_file.png

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Kevin,



Once you have cloned widget you need to replace the widget with the original one in the page.



Look for Service Portal >> Pages & then check for necessary page. Open the page & then look for Open in Designer related link. Open it in designer view, remove the existing widget & replace it with the cloned one.


View solution in original post

3 REPLIES 3

Jaspal Singh
Mega Patron
Mega Patron

Hi Kevin,



Once you have cloned widget you need to replace the widget with the original one in the page.



Look for Service Portal >> Pages & then check for necessary page. Open the page & then look for Open in Designer related link. Open it in designer view, remove the existing widget & replace it with the cloned one.


Thanks for the tip, Jaspal!   Mission accomplished. Here are my steps in the event any future visitors are looking to accomplish something similar:



1.   Navigated to Service Portal > Pages


2.   Located 'approval' page and clicked to view.


3.   Clicked 'Open in Designer' related link


4.   Removed OOB 'Approver info' widget


5.   Added my cloned copy {image below}




find_real_file.png


Wivi
Tera Contributor

Hi @kevinthury , 

Would you mind sharing your code so I can add the 'Comment Box' bellow the buttons on my Approval Widget, please? I'm trying to accomplished the same.

Many thanks!

I appreciate if you can help, many thanks!