Skip to main content
1-Visitor
Jun 5, 2018 8:49 PM UTC
Question

Closing a parent window when the modal child is closed

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

7 replies

22-Sapphire I
Jun 7, 2018 3:09 PM UTC

Expression widget that is triggered upon popup closed event

I think you can use window.close()

 

Translate
sdinh1-VisitorAuthor
1-Visitor
Jun 11, 2018 6:25 PM UTC

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? 

Translate
22-Sapphire I
Jun 11, 2018 7:04 PM UTC

You could try just close()

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

Translate