Please help on Widget clone error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 07:20 PM
Heelo
I cloned the 'My Request' widget to include additional information. However, when attempting to replace the original 'My Request' (OOB) with the clone, I encountered the following error. Please assist. Thank you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 07:22 PM
Hello Can you post the code here?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 07:23 PM
@Lisa Goldman It looks like you are using alert in your server side script of widget which is not allowed as it is a client side method. Please remove the alert from your server side script and the error will resolve.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 09:21 PM
I cloned the 'My Request' widget, but I did not add, modify, or delete any code. I was simply attempting to replace the cloned widget with the out-of-the-box 'My Request' to see if it works. The error message occurred when I tried to save.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 09:37 PM
Hello @Lisa Goldman
Can you please let know the what steps you have done so that we can reproduce this error on PDI...??
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates