Issue
Client scripts are not running on Service Portal. They run perfectly on the Standard UI.
Release
All supported releases
Cause
The cause of client scripts not running on Service Portal is if the UI Type is set to Desktop.
For Catalog client scripts to run on Service Portal, the UI Type needs to be set to Mobile/Service Portal or All.
Resolution
To fix this issue, change the UI Type of the client script to Mobile/Service Portal or All.
Make sure that the scripts are using a mobile-compatible API since the UI type is set to Mobile/Service Portal. If the API is not compatible with the mobile platform, the scripts create errors and not run as expected.
Related Links
For more information on supported and unsupported functions in Service Portal, see the following product documentation.
Service Portal and client scripts
Mobile client GlideForm (g form) scripting and migration (San Diego)