In more complicated applications, it often makes sense to warn users if they try to navigate away from a form without saving the information. For example, in NutrientNet, I have a tool that calculates nutrient credits that spans several tabs, each with a separate form.