Your Form Design Fails the Moment the User Hits Refresh
Every candidate draws the same form. Label, input, validation message, submit button. The interviewer nods. Then they ask the one question that separates the senior from the junior: "The user filled in 40 fields, their laptop died, and they come back tomorrow. What do they see?"
Silence. Because nobody designed the form. They designed a screenshot of a form.
A form is not a layout problem. It is a durability problem. The interesting part of a form is never the fields. It is everything that happens to the data between the first keystroke and the confirmed save, and most of that happens when the user is not looking.
Here is the non-obvious angle most candidates miss: the submit button is the least important part of the form. By the time a user clicks it, the design has already succeeded or failed a dozen times. Every keystroke is a small act of trust. The user is betting their time against your ability not to lose it. A form that throws that bet away on a refresh, a dead tab, or a dropped connection is not a form. It is a trap with nice typography.
So design the resume, not the submit.
Start with the draft. Every field change writes to a local draft store, debounced, not on every keystroke and not on submit. The draft lives somewhere that survives a refresh: local storage for simple forms, IndexedDB when the payload is big or structured. The draft has a timestamp and a version. When the form opens, the first thing it does is check for a draft newer than the last saved server state, and if one exists, it offers it back. A quiet banner: "You have an unsaved draft from yesterday, 4:12 PM. Resume or start fresh."
Then design the save states, because a form has at least five of them and most candidates design one. Drafting. Saving. Saved. Failed to save, with the data still intact. And conflict, the one nobody draws: the user edited on their phone while the desktop tab sat open with an older draft. Who wins? The answer cannot be "whoever saves last, silently." Name the rule out loud in the interview. Last write wins with a visible warning, or field-level merge with a diff the user can see. Pick one and defend it.
Then design the submit itself. A submit is a network call, and network calls fail, get retried, and get double-clicked. Give every submit attempt an idempotency key so a retry is a no-op instead of a duplicate record. Show the unknown state honestly: "We are not sure if that went through. Checking." That sentence is worth more than any spinner. It tells the user the system knows the difference between "failed" and "unknown," which is exactly the difference interviewers are listening for.
Here is the compact artifact. Before you draw a single box, write the form durability card:
- Draft store: where unsaved input lives, and how long it survives
- Save trigger: debounce window, and what counts as a saveable change
- Resume state: what the user sees when they come back, and how they choose
- Submit state: idle, sending, unknown, confirmed, failed, each with its own screen
- Conflict rule: who wins when two drafts disagree, and what the loser sees
Five lines. If you can fill all five with specifics instead of hand-waving, you have already beaten most candidates in the room, because most of them are still arranging boxes while you are designing the thing the user actually experiences: a form that respects their time.
The test is simple. Close the tab halfway through your own design and reopen it. If your answer starts with "well, the user would have to start over," you do not have a form yet. You have a screenshot, and screenshots do not survive contact with real users.
I turned the full 60-question drill set into The Frontend System Design Interview Playbook ($19, or $15.20 with code BLESSFRIDAY20 until Dec 4): https://bittalk.gumroad.com/l/frontend-interview-playbook
Design the resume first. The boxes are the easy part.