Question on Script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â02-27-2026 08:29 AM
I wrote a script include in Employee center core and a client script in the same application for a record producer.
There I have a requirement to check if Requested for is a member of HR groups or not.
I created a field and marking it based on the script include and client script
Client script
Script include:
ANy suggestions what I am missing?
it works but also gives an error of "ErrorThere is a JavaScript error in your browser console"
Any help is highly appreciated.
Thank yoU!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â02-28-2026 02:24 AM
Hi @ashutoshpat
May you confirm these steps:
- Script Include must be client callable
- Do not use global.AbstractAjaxProcessor in scoped Employee Center apps
- alert() causes browser console errors in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â03-01-2026 04:18 AM
Yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â03-01-2026 07:38 AM
So what should be done for employee center cases?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â02-28-2026 04:01 AM
Hello @ashutoshpat ,
Plz check the browser console to get describe what's the actual error.
"There is a JavaScript error in your browser console" error message appears when accessing the Servi...
If my response helped mark as helpful and accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â03-01-2026 04:19 AM
