Check if a form have not been saved if I click outside.

Hello,

I have a complex application with a form inside.
When field(s) changed a save button appeared (event onChange and onKeyPress)
I wan’t to know if it possible to open a window that say someting like “The changes have not been saved, continue?” if I click outside of the form.
It is possible to use a high level event ?

Thanks

Please check the next snippet

You can catch the native event ( onClick event of webix ) and based on event object detect on which view click occurs.

Also, if form is modal by its nature, you can consider usage of webix.window in modal mode with form inside.

http://webix.com/snippet/a2698bef

Thanks :wink: