Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Workspace Modal popup issue

Steve214
Tera Contributor

We are trying to build a popup in workspace that validates an input then passes the input back to the form.  We built a UI Page that calls window.parent.postMessage then calls to close the modal.  The UI Action is using g_modal.showFrame. The X at the top corner of the modal does close the frame.  However, we are unable to close the modal using any of the following function calls from our confirm button: 

  • window.close()
  • window.parent.close()
  • GlideDialogWindow.get().destroy()
  • GlideDialogWindow.prototype.get().destroy()
  • GlideModal.get().destroy()
  • GlideModal.prototype.get().destroy()
  • GlideModal.prototype.get(<UI Page>).destroy()
  • var modal = new GlideModal().get(<UI Page>); modal.destroy();

We trying to identify what we may be missing or other methods to close a modal.  

 

 

0 REPLIES 0