Error when updating cloned form widget

hamzaathar
Tera Expert

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.

 

hamzaathar_0-1741767638495.png

 

I would appreciate any support. Thank you

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@hamzaathar 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I did not make any changes. Line 25 is visible in the screenshot and looks fine to me

@hamzaathar 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Rushi Savarkar
Kilo Sage

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 

If my response helped you, please accept the solution and mark it as helpful.
Thank You!