The contact form does not end at Send.

Web designFormsExperience

Someone has just written a project enquiry. The interface needs to look after that effort until it can explain what happened.

A form is one of the few parts of a website where the visitor stops looking and starts working. They find their email address, summarise a need, work out a budget. If something fails at the end, they lose more than a click.

That is why we review a form starting with what happens after Send. The pending state, an error and the confirmation are all part of the same conversation.

This piece walks through the kavaliero.com form from start to finish: what it asks, what it checks, what it says in each state and what it cannot know. It is not the only sensible design. It is one we know from the inside, with its code open in front of us.

One form, everywhere

On this site every "start a project" button leads to the contact page: the one in the header on every page, the three on the home page's services and the one in the footer. On top of that, the home page, every case study and the about page end with the full form.

It is the same component in all of those places, with the same fields, labels and error messages, read from a single block of copy per language. Only the headline that introduces it changes. So a case study's form cannot ask for something different, and an error message cannot be fixed on one page and left wrong on another.

The Kavaliero contact page in English, with fields for name, email, project and budget.
The site's contact page.
The end of the Nelly Morales case study on kavaliero.com, in English: the headline "Let's talk about you, your company, your product, and your goals.", a short invitation on the left and the same form on the right, with the Send button.
The same form at the end of the Nelly Morales case study. The headline changes; the fields and messages do not.

Every field should change the next conversation

The Kavaliero form asks four things: a name, an email address, the project in the visitor's own words and a budget in US dollars. Each has a reason. The email makes a reply possible. The project gives context. The budget lets the first reply talk about scope.

The limits are deliberate too. The name is a single line of 2 to 80 characters, because it goes into the subject line of the email the studio receives. The project description asks for at least 20 characters: enough that "hi" is not a brief, and nowhere near asking for a document. The budget is free text, because some people write a figure, some a range and some "not sure yet".

None of that makes four fields a universal formula. A booking or a technical request may need different information. The point is to ask for what is needed to deal with the request without moving the whole first meeting into the form. What to prepare for that meeting is in how to brief a website.

How many fields should a contact form have?

The ones that change the business's first reply. On kavaliero.com that is four: name, email, project and budget. If a piece of information would not change what the team does next, it probably does not belong in the first contact.

An error belongs next to what can be fixed

Someone types an incomplete email address. The page can answer "something went wrong" or point to the field that needs attention. Only one of those helps them finish.

The check happens twice. First in the browser, which will not send an empty required field, a malformed email address or a project that is too short. Then on the server, which validates every value again before preparing anything. The browser's check improves the experience; the server's is what protects the system, because anyone can send a request without going through the page.

If the server rejects a value, it returns the list of affected fields. Each one is marked invalid for screen readers and gets its own message, "Check this field.", tied to it, and below the button a general notice appears: "Check the marked fields and try again." The general notice is announced as an alert; the success message as a status.

Validation should not punish correct work either. When reviewing the build, try a long message with a single wrong field. Check what the interface keeps, where the error appears and whether it can be fixed with the keyboard alone.

The kavaliero.com contact form on a phone, in English: "With us it happens. We would love to hear from you." and below it the fields Your name, Your email, Your project is about and Project budget (USD), with the Send button.
The same form at 390 wide. One field per row and the button within reach of a thumb.

While it waits, the page has to say something

If the button still looks available while a request is in flight, the visitor may press it again to check whether it worked. A clear sending state explains that the action has started.

On our form, while the request is in flight, the button is disabled and its label changes from "Send" to "Sending". It is a small thing, and enough that nobody wonders whether the page heard them.

Temporarily disabling the button helps prevent double presses in that interface. It does not prove the whole system is immune to duplicates: another tab, a reconnection or a retry can take other routes. That question is covered in the automation that sends twice.

Filtering spam without interrupting the visitor

Public forms attract automated submissions. A useful first layer of filtering can check for patterns associated with automation without asking every visitor to solve a puzzle. Those checks belong alongside server-side validation and should preserve access for people using keyboards, screen readers or autofill.

The useful design question is how to reject unwanted submissions while keeping legitimate enquiries usable. Test that the filter does not discard a real person’s message or leave them unable to recover from an error. The details of the live filtering rules are operational configuration.

It is a modest measure and it will not stop everything. Its advantage is that it costs nothing to the people genuinely writing, which is the standard any filter should be judged by.

Accepted by the provider is not the same as read

This site's contact action prepares an email and waits for Resend's response. The email goes to an address configured on the server, never in code that reaches the browser. Its subject is in the visitor's language, its body says which language they wrote in, and replying to that email replies straight to the visitor, because their address is set as the reply-to.

If the provider rejects the request or the call fails, the action returns an unavailable state. The same happens if the server has no key for the service: a misconfigured installation says it cannot send, rather than faking success. For a normal submission, the success state only arrives once that call has finished without an error.

That result does not prove the message reached the main inbox or that anyone has read it. It describes the acceptance of a send request. Delivery and the studio's reply come later. Before any of that, the provider requires the sender's domain to be verified in its DNS; without that step the form cannot send anything at all.

What should a form confirm after submission?

The state the system can actually verify. Accepting a send request, delivering an email and getting a human reply are separate facts. The interface should avoid promising a step it does not yet know about.

Our confirmation reads "Thank you. We will be in touch soon." It promises no deadline, because the code does not control one. And the unavailable error does not leave the visitor stranded: "The form is unavailable right now. Email us at sales@kavaliero.com." If the page cannot send the message, it at least says where to send it.

What surrounds the form counts too

A form can work perfectly and still fail because of what sits around it. Ours did, through the footer. On this site the footer rises like a curtain over the end of every page, and for a while that curtain paused whenever a field took focus, so it would not cover the form on phones. On a desktop, the result was that the gradient vanished the moment anyone clicked into a field. We removed that exception: the curtain answers the scroll and nothing else, and a check clicks into a field with the curtain part way up to make sure it does not move.

The privacy policy is another neighbour. Ours describes what the code does: the form collects a name, email, project and budget, Resend delivers the email and the only cookie is the language one. If the form changes, the privacy policy changes in the same change.

The kavaliero.com contact page half covered by square burgundy cells appearing in random order.
The page transition on the way to the contact page. Whatever surrounds the form gets tested with it. More in behind kavaliero.com.

The test ends where the team works

A delivery test needs an identifiable, authorised request and someone who checks the destination. Seeing a confirmation screen is not enough. You also need to know who replies and how to spot an enquiry that went unanswered.

  • Successful send: check the content received and that replying goes to the visitor's address.
  • Invalid data: check which field is flagged and what the page keeps.
  • Service unavailable: the interface should say it could not complete the action, without a false success, and offer another route.
  • Mobile: check the open keyboard, long fields and where the response appears.
  • Both languages: send one in each and check the subject and the visitor's language arrive correctly.

These are conditions for reviewing an implementation, not a claim that this article measured production email delivery. The behaviour of the code and the operation of the deployed service need separate checks. The full journey on a phone is in the website that passes the demo and fails on a phone.

A promise someone can keep

A response time can be useful if there is a team able to meet it. Writing "within minutes" because it sounds good creates an expectation the code cannot control.

When contact is a website's main action, its states deserve the same attention as the home page. The person who got this far has done their part. The next reply belongs to the business.

Technologies and tools

React
Form state during the action.
Zod
Server-side validation.
Resend
The email send request.
Next.js
The server action that receives the form.

If you would like to see it handle a real brief, tell us about your project.

FAQ

Should a phone number be a required field?

That depends on how enquiries are handled. If the first contact happens by email, requiring another channel adds a demand the business should be able to justify.

Does a success message prove someone read the email?

No. It should be read according to the state the system confirms. Reading and a human reply need information that comes later.

Do you need server-side validation if the browser already checks the fields?

Yes. The browser helps people using the page, but a request can arrive without going through it. The server is the only place a check cannot be skipped.

What is a honeypot field, and does it bother visitors?

It is an invisible field that only automated programs fill in. Done properly, a person never sees it, cannot reach it with the keyboard and their screen reader does not announce it, so it costs them nothing.

What should the form say if sending fails?

That it could not be sent, without dressing it up as success, and another way to reach the business. Ours gives an email address inside the error message itself.

More insights