Server JavaScript error Cannot find function getGuide in object com.glide.service_portal.widget.fencing.ScopedSPScriptable@11e58d3.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2020 03:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2020 03:36 AM
Hi Sana,
You need to check in which scope you are using it. It is not giving error as it is not present, but if the widget is in some scope and you are trying to add it to your page in some other scope then it will throw this error.
Please mark this answer correct if it resolved the query and mark it helpful too if it helped you at all
Thanks,
Mohit Kaushik
Mohit Kaushik
ServiceNow MVP (2023-2025)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2020 03:51 AM
Widget is in same scope only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2020 04:18 AM
In which scope do you have your page? and in which scope you have edited the widget after cloning.
Suppose your page is in global scope but widget was in some application scope, then when you are cloning the widget you have to clone it in the same application scope not in the global scope. After that once you finish the editing or customizing , then go to global scope and add it to your Page. It should work after this as i have also faced same kind of issue when i was trying to modify the Take survey widget in portal. The only reason of showing the OOB method not defined or not found is the cross scope of widget either at the time of cloning or at the time of adding to the page.
Thanks,
Mohit Kaushik
Mohit Kaushik
ServiceNow MVP (2023-2025)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2022 06:41 AM
I also cloned the sc order guide and the sc_cat_item_guide portal page in the same scope of my custom app. Are you saying that the page should be cloned in the global scope and the widget in my custom scope? Or they should both be in the same scope?