Error when updating cloned form widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2025 01:21 AM
Hi,
After cloning the form widget I am not able to make any changes because of the following error.
Note that I did not change anything in the code, I only tried to change the name of the cloned widget.
I would appreciate any support. Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2025 01:58 AM
did you make any changes after cloning?
Did you check line 25?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2025 03:34 AM
I did not make any changes. Line 25 is visible in the screenshot and looks fine to me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2025 05:05 AM
I cloned and then saved and it gave me error.
Seems a platform bug, I could see 1 old question for the same in community
I cannot save changes in Copy of Form Widget because of an OOB Error
As a workaround open that widget in Widget editor and it works from there
I was able to save using Widget Editor
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2025 04:46 AM
Hello @hamzaathar
Below is the link for Reserved Words in the javascript. The error is coming because you are using one keyword from the link below. I think it is the "delete" keyword
https://www.w3schools.com/js/js_reserved.asp
Thank You!