How do I open a GlideModal from a scoped app

petercawdron
Kilo Guru

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.

1 ACCEPTED SOLUTION

Peter P_
Tera Expert

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.

View solution in original post

5 REPLIES 5

R_32
Tera Contributor

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");