- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2024 11:50 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 02:04 AM - edited 10-15-2024 02:04 AM
Hi @LinhN ,
After
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
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.
Save the widget.
Final step to bring the widget on the Employee center.
Open the page in designer.
Now, drag the Copy My Item widget.
Your are done!.
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 02:04 AM - edited 10-15-2024 02:04 AM
Hi @LinhN ,
After
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
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.
Save the widget.
Final step to bring the widget on the Employee center.
Open the page in designer.
Now, drag the Copy My Item widget.
Your are done!.
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 08:52 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 09:08 AM
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.