Skip to main content
1-Visitor
June 5, 2018
Question

Closing a parent window when the modal child is closed

  • June 5, 2018
  • 1 reply
  • 5202 views

I have a mashup with a button that uses a hidden navigation widget to open a modal child window that is just a confirmation message.  When the child window is closed I would like for the parent to also close so the user does not click the button again.  Looking for the cleanest way to handle this.  Any help would be appreciated

1 reply

22-Sapphire I
June 7, 2018

Expression widget that is triggered upon popup closed event

I think you can use window.close()

 

sdinh1-VisitorAuthor
1-Visitor
June 11, 2018

Thanks for the response!  I bound the Expression 'Evaluate' event service to the Navigation widget's PopupClosed event with an Expression of "close()" however that did not close the parent.  "window" appears to be a reserved word that gives an error so window.close() doesn't seem to be usable.  Any thoughts? 

22-Sapphire I
June 11, 2018

You could try just close()

else you may have to create a custom extension to bring in that script.