Is there a way, to discover, if the user is leaving a page with a form without saving it. He should receive a message, that he has not submitted the form and the data will be lost, if going to another page without saving the path first.
It could be done by changing drupalgap_goto()
, but maybe there is another way.