- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 04:44 AM
We have a custom Module in Service Portal, where we order items like hardware, software etc. Now in this Module, when the ordering Items are loaded, I am getting an error "There is an Javascript error in the browser Console"(see attacment).
This error is because of the following Catalog Client Script.
I tried by unClicking the Isolate Script button, it didn't work. Also by changing the UI type to All, nothing is working. I saw many suggestions in the community for the same error. But nothing worked for me. Could someone pour suggestions on this?
Solved! Go to Solution.
- Labels:
-
Request Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2022 01:10 AM
Hi,
In the Catalog Client Scripts, I made the following Changes and then it got worked.
function onLoad() {
if(typeof g_service_catalog !== 'undefined'){
if(g_service_catalog.isOrderGuide()) { //only works in SP
g_form.setDisplay("details", false); //hide complete variable set on order guide
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 04:56 AM
Hi,
I came across this http://www.cloudminus89.com/2020/07/useful-catalog-client-scripting-for.html
and it might solve your issue.
Hope it helps!
Tudor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 05:06 AM
Hello ,
This happens when glide.sc.use_sc_form_v2 this particular property is set to false in your instance .
please go to sys_properties table and search for this property and check if this property is true or false
if it is false please set it to true and then try in portal or Native view again.
Please mark this accept the solution if this solves the issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2022 01:10 AM
Hi,
In the Catalog Client Scripts, I made the following Changes and then it got worked.
function onLoad() {
if(typeof g_service_catalog !== 'undefined'){
if(g_service_catalog.isOrderGuide()) { //only works in SP
g_form.setDisplay("details", false); //hide complete variable set on order guide
}
}
}