- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2019 12:47 PM
I've cloned Knowledge Result widget, and when I placed cloned instance on the Service portal page without any modifications, I started getting JavaScript error: "Server JavaScript error "KBPortalService" is not defined." and it started prompting me to login into the portal although I am already logged in. It is exactly the same as the original.
Any idea why is this happening?
Thank you,
Goran
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- 2,882 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2019 11:42 PM
Hi Goran,
It is read only script include. We cannot modify it . Instead create a new custom script include and add the contents of this script include and in your custom widget add the custom script include. Please note , that the script include is calling KBPortalServiceImpl.
Regards,
Swathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2020 02:17 AM
@Swathi
Hello guys.
I am getting the same error KBPortalService is not defined
afther cloning the Knowledge Featured Articles.
I go in the background in Scripts Includes and there i am making new custom script
with same code from the KBPortalService but avalable to all aplication scopes.
I named this custom script CopyOfKBPortalService.
After that in the cloned widget from the Knowledge Featured Articles
i am using var kbService = new CopyOfKBPortalService();
and after that i am getting again the same error.
Please help
Thanks in advance
Then in the Knowledge
Please help
Thanks in advance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2022 06:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2022 09:39 PM
Hi