Issue
When opening a form in the Service Portal, this JavaScript error displays: "There is a JavaScript error in your browser console".
Cause
This error typically originates in a client script that runs on the form. You will have to identify which script it is and troubleshoot from there.
Resolution
The browser developer tool console can provide more details about the error. To open it:
- Right-click anywhere on the form.
- Select Inspect
- Select the Console tab
Find the Client script that is causing the issue.
You have two options:
- Update this script to work on both portal and back end views.
- Write a different script to run only on the portal, and leave the current script to run only on the desktop.
Related Links
Some methods are not supported in mobile or service portals but work fine in native UI. Avoid such methods while creating client scripts for the portal.
The following product documentation provides more explanation about unsupported methods.