Please help on Widget clone error.

Lisa Goldman
Kilo Sage

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.

 

LisaGoldman_0-1705979923520.png

 

10 REPLIES 10

Hi @Vishal Birajdar 

The error is on PDI (See attached video)

Thank you

 

Hi @Lisa Goldman 

 

Thank you for this video.

 

Can you right-click on form in browser where you are getting this error & click on 'Inspect' and check in console log for the script having 'alert' :

 

here I have just reproduced this error in my portal...for you it will be page editor

 

VishalBirajdar_0-1705991807127.png

 

Go to console & search of 'alert' word

here you will get to know from which script you are getting error

 

VishalBirajdar_1-1705991932695.png

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Hello @Vishal Birajdar 

Thank you so much for showing me the technique on troubleshooting widget errors. I learned something new.

 

Once I located the script causing the error, how do I fix it?

 

LisaGoldman_0-1706027587723.png

 

 

Hello @Lisa Goldman 

 

You need to find out it in platform in which script/widget script that alert has been added and comment that line or remove it from script.

 

**If you expand the error in browser console you might get the sys_id of the object in which that alert has been added.

 

Hope this helps...!!!

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Hi @Vishal Birajdar 

I am assuming this is the line that caused the error. How do I comment out the line and save the changes?  

 

LisaGoldman_0-1706072321418.png