The CreatorCon Call for Content is officially open! Get started here.

How to hide the Approve and Reject buttons on the My Active Items widgets on the ESC?

LinhN
Tera Contributor

Hi guys. I have a requirement to hide the Approve and Reject buttons on the My Active Items widgets on the ESC, do you know how I can do this? Please give me a way to hide these 2 actions

LinhN_0-1728974993054.png

 

1 ACCEPTED SOLUTION

Najmuddin Mohd
Mega Sage

Hi @LinhN ,

NajmuddinMohd_0-1728982066582.png     

 

After

                 NajmuddinMohd_1-1728982089622.png

 

 

The functionality works with two widgets.
'My Items' widget which calls 'Action Widget' ( which has the configuration of your requirement).

Both widgets are read-only. So, you need to clone them and add to Page.

1.  Navigate to -----.service-now.com/sp_widget.do?sys_id=38a3a159530201101865ddeeff7b1263
2. Clone the widget from top right button.

Name: Copy of Actions Widget
ID: copy-actions-widget

In the client controller section, make visibility = false in IF block also. Line 98

NajmuddinMohd_2-1728982540628.png

Save the widget.

3. Now, navigate to -----.service-now.com/sp_widget.do?sys_id=6e449453c33030105a09f0ad9840ddf0

4. Clone the My Items widget.

Name; Copy My Items
ID: copy_my_items

Now, in sever script section, replace the widget with "copy-actions-widget" (clone of first widget). on line 20.

NajmuddinMohd_3-1728982824983.png

Save the widget.

Final step to bring the widget on the Employee center.

Open the page in designer.

NajmuddinMohd_4-1728982932168.png

 

Now, drag the Copy My Item widget.

NajmuddinMohd_5-1728983004684.png

 

 

Your are done!.

If the above information helps you, Kindly mark it as Helpful and Accept the solution.

Regards,
Najmuddin.






View solution in original post

3 REPLIES 3

Najmuddin Mohd
Mega Sage

Hi @LinhN ,

NajmuddinMohd_0-1728982066582.png     

 

After

                 NajmuddinMohd_1-1728982089622.png

 

 

The functionality works with two widgets.
'My Items' widget which calls 'Action Widget' ( which has the configuration of your requirement).

Both widgets are read-only. So, you need to clone them and add to Page.

1.  Navigate to -----.service-now.com/sp_widget.do?sys_id=38a3a159530201101865ddeeff7b1263
2. Clone the widget from top right button.

Name: Copy of Actions Widget
ID: copy-actions-widget

In the client controller section, make visibility = false in IF block also. Line 98

NajmuddinMohd_2-1728982540628.png

Save the widget.

3. Now, navigate to -----.service-now.com/sp_widget.do?sys_id=6e449453c33030105a09f0ad9840ddf0

4. Clone the My Items widget.

Name; Copy My Items
ID: copy_my_items

Now, in sever script section, replace the widget with "copy-actions-widget" (clone of first widget). on line 20.

NajmuddinMohd_3-1728982824983.png

Save the widget.

Final step to bring the widget on the Employee center.

Open the page in designer.

NajmuddinMohd_4-1728982932168.png

 

Now, drag the Copy My Item widget.

NajmuddinMohd_5-1728983004684.png

 

 

Your are done!.

If the above information helps you, Kindly mark it as Helpful and Accept the solution.

Regards,
Najmuddin.






Hey, Thank you so much for your help. I have practiced the drag-and-drop copy of my items. When I drag the Copy My Items without removing the My Items Widget, it returns a Good UI. But when I remove the My Items widget and keep the Copy My Items widget, it returns a Javascript error. Do you know the reason for this? 

LinhN_1-1729007474080.png

 

 

Hi @LinhN ,
Sorry, no Idea on that. 

If the above information helped you out, kindly mark it as Helpful and Accept the solution.

Regards,
Najmuddin.