# 7.9 Warn before discarding entered work

> Chapter 7, Flows. Section: Progress and entered data. Guide: https://www.designguide.dev/md/07-flows.md#warn-before-discarding-entered-work

Hard · Adapts

**Rule:** Ask before closing a screen that holds unsaved input, and name what the person will lose.

**Wide screen:** On a wide screen, also warn when the window or tab closes with unsaved input. (Triggers: Fine pointer, Keyboard)

**Why:** A stray press on close or back can destroy minutes of work.  **When not:** Do not ask when the screen is empty or the app saves a draft on its own.

- Offer "Keep editing" as the safe choice.
- Say what is lost: "You will lose 3 notes."
- Dialog words: [Rule 9.12](https://www.designguide.dev/r/skip-are-you-sure-and-repeat-the-verb.md). Window close: [Rule 13.13](https://www.designguide.dev/r/protect-unsaved-work-on-close-and-reload.md).

**Picture:** Do: The dialog names the loss and offers Keep editing. Don't: Pressing close dropped the note with no question. Size pair (Phone, 375; Window, 1280): The phone asks on close. The window also asks on window close.

**See:** [9.12 Skip "Are you sure?" and repeat the verb](https://www.designguide.dev/r/skip-are-you-sure-and-repeat-the-verb.md), [13.13 Protect unsaved work on close and reload](https://www.designguide.dev/r/protect-unsaved-work-on-close-and-reload.md)
