There is no default action in Mendix for this purpose. When you click on a navigation item, you will lose your form. To prevent this, you could save it on the background, but that's not always desirable. Especially when you have complex forms with many validations. You could file a feature request to show a client message when the user clicks the form away.