
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2018 10:03 PM
I'm getting the error "SCRIPT:EXEC Error while running Client Script "GlideScopedScript": ReferenceError: GlideModal is not defined" when trying to open a glide modal using...
var angularModal;
angularModal = new GlideModal();
Does anyone have any ideas on how to launch a glide modal from within a scoped script? Thanks.
Solved! Go to Solution.
- Labels:
-
Scoped App Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2019 11:37 PM
This didn't work for me. But I found this option:
var dialog = new GlideModal("sn_grc_modal");
Replace the dot by an underscore to get a UI Page in a special scope.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2018 10:32 PM
i think it should work.
where exactly have you created the UI PAge , is this also in scoped app? if yes then try with
angularModal = new GlideModal(scopeName.<UI Page Name>);
https://developer.servicenow.com/app.do#!/api_doc?v=london&id=c_GlideModalClientSideV3API

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2018 11:25 PM
Thanks for the suggestion, unfortunately it didn't work.
It got me to try the following, but that didn't work either.
angularModal = new this_app.GlideModal();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2019 06:05 AM
It works!
var dialog = new GlideModal("sn_grc.modal");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2019 11:37 PM
This didn't work for me. But I found this option:
var dialog = new GlideModal("sn_grc_modal");
Replace the dot by an underscore to get a UI Page in a special scope.