
Options
- 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:
- Labels:
-
Scoped App Development
1 ACCEPTED SOLUTION
Options
- 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.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2025 03:22 PM
This is the correct answer. The syntax would be
var modal = new GlideModal("<your_scoped>_<ui_page_name");
# for scoped app namespace of x_123_scope and UI page named custom_modal, then it'll be
var modal = new GlideModal("x_123_scope_custom_modal");