Receiving this error "Javascript Error in Browser Code" in the Portal for one of the catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-06-2023 06:07 AM
Hi, I am receiving this error "Javascript Error in Browser Code" in the Portal for one of the catalog item for those who don't have any roles. I am the admin or anyother with itil role does not see this error but the ones without any roles get stuck with this error on the browser.
I have created an onload Client Script for the catalog item.
Below is the code:-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-06-2023 06:13 AM
What does the error say in the browser console? I have seen this message when the Script Include does not return anything - so maybe the unrolled users are encountering trouble calling the SI, or something in that script? Make sure the SI is coded to always return something then add logs to see if it is getting called, and how far it is getting for these users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-06-2023 06:17 AM
In the console it says: Unhandled Exception in GlideAJAX.
Yes the script include I created does return a value and I have tested it in Background script as well. It's working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-06-2023 06:21 AM
Just to clarify, does the SI return a value for one of these users when getting the error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-06-2023 06:23 AM
No like in the script include I have the choices for the fields in catalog item but they are not able to see those values in the portal form.