Contact us
← Back to Articles
Updated By Masum Rana 7 min read

What Should Happen When a Form Fails? Designing Retry and Recovery

Two failure points for one form: sending fails and the visitor keeps their text to try again, or the message is saved and delivery is retried.

A form can fail in two different places. It can fail before the message is saved, while the visitor is still on the page. Or it can fail after the message is saved, when the system tries to pass it on to an inbox, a chat or another tool. Each failure needs its own design.

When sending fails, the visitor needs to keep everything they typed, understand what happened and have a safe way to try again. When delivery fails, the visitor has already left. The system needs to keep the message, retry within clear limits and tell a person when retrying stops.

Most form work covers the first case and forgets the second. This article covers both, using the published architecture of Postbag, a form-submission platform Premium Design Company designed and built, as a worked example.

Two different failures: not received and not delivered

It helps to name the two cases separately, because they have different owners and different fixes.

Not receivedNot delivered
WhenBetween the click and the server saving the messageAfter the message is saved, while sending it on
Who can actThe visitor, while they are still on the pageThe system, then a person on the team
Typical causesLost connection, a validation error, a server error, a timeoutAn email provider error, a webhook endpoint that is down, a wrong chat ID
What good looks likeInput kept, a clear message, a safe retry, another way to get in touchMessage kept, retries with limits, an alert when retries stop

The worst outcome sits between the two: the server saved the message, but the visitor was told it failed. They send it again, or give up and assume nobody will read it. Ambiguous results deserve as much design attention as clear errors.

What the visitor should see when sending fails

If the server never received the message, the visitor is the only one who can fix it. The page should make that easy.

Keep everything they typed. A failed submit that clears a long message is the most expensive mistake a form can make. Leave every field filled in, including file choices where the browser allows it.

Say what happened and what to do next. “Your message wasn’t sent. Check your connection and try again” helps. “Something went wrong” does not. Put the message next to the submit button, where the visitor is already looking, and announce it to screen readers. Our SaaS micro-interactions article covers loading and error states in more detail.

Make a second attempt safe. Disable the button while a request is in flight, so an impatient double-click doesn’t send the message twice. If the server might have saved the first attempt, the retry should not create a confusing duplicate for the team.

Offer another route. If the form is how people reach a business, show an email address or phone number beside the error. We wrote about this in trust UX patterns: never hide the way to reach a real person.

Don’t claim a failure you can’t confirm. A timeout doesn’t prove the message was lost. Where the result is unknown, say so: “We couldn’t confirm your message was sent. If you don’t hear from us within a day, email us directly.”

One decision from our own website illustrates the last point. The contact, quote and consultation forms on this site use a normal browser form submit with a redirect, rather than a script that sends the data in the background. With our setup, a background script couldn’t read the endpoint’s cross-origin response, so it would show the error message every time, whatever had happened to the submission. A native submit lets the browser handle the response and the redirect. The simplest option was also the honest one.

What should happen after the message is saved

Once the message is stored, the visitor’s part is done. Everything that follows is the system’s job, and the visitor should never have to know about it.

Postbag’s public architecture documentation shows one way to structure this. We use it here because PDC designed and developed the system and the design is documented in public. What follows describes the documented design, read on 24 October 2026. It is not a measurement of Postbag’s reliability.

Save first, deliver separately. When a form is submitted, Postbag writes the submission, one delivery record for each configured destination and an event in a single database transaction. No third-party service is called while the visitor waits, apart from the Turnstile spam check. Sending happens afterwards, in workers that pick up pending deliveries. So a slow email provider can’t make the form itself slow or fail.

Retry with backoff and a limit. A failed delivery is attempted again after a delay that roughly doubles each time, with some randomness added and a ceiling of six hours. Email and Telegram deliveries stop after 8 attempts; webhooks after 10. A webhook request times out after 10 seconds. Spreading attempts out gives a temporarily broken destination time to recover without being flooded.

Track “saved” and “sent” as different states. Each delivery has its own status, such as pending, failed or dead. The submission stays stored whatever happens to a delivery. One broken destination doesn’t block the others, and nobody has to guess whether a missing email means a missing message.

Hold work instead of dropping it. When an account is over its limit, Postbag stores and flags new submissions rather than discarding them. A manager releases them for delivery once capacity returns.

The details will differ in your product, but the structure carries over: accept and store quickly, deliver in the background, and keep a record of every attempt.

Retry rules worth writing down

Retries are easy to add and hard to reason about later. Before building, write down an answer to each of these questions. The right-hand column shows Postbag’s documented answers as one example.

DecisionQuestion to answerPostbag’s documented answer
What is retriedWhich failures get another attempt?Failed deliveries to each destination, separately
SpacingHow long between attempts?Exponential backoff with jitter, capped at 6 hours
LimitWhen do retries stop?8 attempts for email and Telegram, 10 for webhooks
TimeoutHow long is one attempt allowed to take?10 seconds for a webhook request
Final stateWhat happens when retries stop?The delivery becomes dead, an event is raised and the dashboard shows an alert
DuplicatesCan a retry deliver the same message twice, and does the receiver cope?Not stated in the architecture page; ask this of your own system
TestingCan someone check a destination before relying on it?A test call sends a sample through the real adapter and returns the result

The duplicates row is the one teams most often skip. If a webhook receiver saves a message but times out before replying, the sender sees a failure and tries again. Decide early whether the receiver should recognise a repeated delivery, for example by an ID in the request.

When should a person be told?

Automatic retries cover short outages. They can’t fix a wrong email address or an expired webhook URL. At some point a person has to look.

A useful alert says which destination is failing, since when, and how many messages are waiting. It goes to someone who can fix the configuration, not to everyone. And it should not repeat for every failed message: Postbag’s documentation describes throttling alerts per destination, so one broken endpoint doesn’t bury the team in notifications.

Decide in advance who owns these alerts and how quickly they should respond. A message that is saved but never read is still a lost enquiry.

A checklist for form failure and recovery

Use this when you design a new form or review an existing one.

  • Input survives failure. Every field keeps its value after an error.
  • Errors are specific. Each message says what happened and what to do next, sits near the submit button and is announced to assistive technology.
  • Double submits are prevented. The button is disabled while sending, and retries don’t create confusing duplicates.
  • Unknown results are honest. A timeout isn’t reported as a definite failure.
  • There’s another way in. An email or phone number is visible when the form fails.
  • Saving comes before delivery. The message is stored before any third-party service is called.
  • Each destination has its own status. “Saved” and “sent” are tracked separately.
  • Retries are bounded. Backoff, a maximum number of attempts and a timeout are written down.
  • A person is told. Failed deliveries raise an alert with a named owner, without flooding them.
  • Destinations can be tested. Someone can send a sample before going live.

Getting this right in your own product

Form failures are rarely the visible part of a project, which is why they get missed. They sit between design, front-end and back-end work, and each discipline assumes another one handled them.

If you’re building a product where messages, orders or requests have to arrive, we design and build the full path, from the error message on the page to the delivery records behind it. See our web development service, read the Postbag project, or get in touch to talk through your forms.