Native.showpopup - May Be Simple Answer.

Is there an event that can be captured when the x has been cancelled or terminates normally (after sending an email for example)?

If so what is that event and how can it be used?

If not, maybe it can be detected indirectly? If the native popup is dismissed can a display group event be captured if it regains focus?

Thanks in advance,

David