There is a javascript error in your browser console when previewing a record in Servicenow

Justine Mae Ruf
Tera Expert

Hi Team,

 

I'm experiencing an error when previewing a record in portal.

JustineMaeRuf_0-1690768754996.png

 

When inspecting, below is the error message

JustineMaeRuf_1-1690768803831.png

 

Below is the client script causing the error. This client script autopopulates the field.

JustineMaeRuf_2-1690768853032.png

 

Any ideas as to why am I getting this error? Thanks

4 REPLIES 4

Samaksh Wani
Giga Sage
Giga Sage

Hello @Justine Mae Ruf 

 

Plz send us the screenshot of your script include.

Hi Samaksh

 

Thanks for the response below is the Script Include function

JustineMaeRuf_0-1690859336926.png

 

Hi @Samaksh Wani ,

 

I would just like to add that I deactivated the client script & UI policy related to that field and tried inputting user manually. When I clicked the reference icon to preview the record, it still shows the error. I also tried duplicating the field and it still shows the error. I checked the table referenced to the field and there is no existing onload client script as well. Which means the error does not lie within the client script of the catalog. Have you experienced the same before? Please let me know. Thanks

Hi @Samaksh,

 

May I know if you have experienced the same issue before? We are planning to raise Hi ticket for this one