Question on Script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
3 weeks ago
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
3 weeks ago
Yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
So what should be done for employee center cases?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
3 weeks ago
