Contact forms · 5 fields
Contact sales form template
For B2B products with a talk to sales button. Work email, company and size are the three facts a salesperson checks before a first call, and the message is optional so a busy buyer can send it in twenty seconds.
Contact sales
Live demo: try the fields. Submitting sends nothing.
02 / Field guide
Why these fields
Name
text · requiredRequired. The salesperson needs someone to ask for.
Work email
email · requiredRequired and labelled Work email. The markup accepts any address; if free mail domains are useless to you, say so in the label instead of blocking them silently.
Company
text · requiredRequired, because a sales lead without a company cannot be researched.
Company size
select · optionalOptional, with 1-10 preselected in the generated HTML since the list has no empty option. Add a Please choose option, or small-company leads will be overcounted.
How can we help?
textarea · optionalOptional. Buyers who already know what they want will write it; the rest prefer to explain on the call.
When to use it
Place it behind the sales call to action on a pricing or enterprise page. For a job you price per project, the quote request template asks about scope and budget instead.
Edit the size bands to match how you segment accounts. If everyone above 50 seats gets the same treatment, three bands are enough.
Privacy and GDPR
- A request to be contacted covers the reply and the sales conversation. It does not cover a newsletter, which needs its own unticked box.
- Leads that go cold should not sit in the form forever. Push them to your CRM, apply its retention rules, and keep the form's own retention short.
03 / Make it yours
Choose your stack. Copy your form.
Replace the example endpoint with your Formward endpoint, then adapt the fields to your needs.
<form action="https://forms.formward.eu/f/your-form-id" method="POST">
<label for="name">Name</label>
<input type="text" name="name" id="name" required />
<label for="email">Work email</label>
<input type="email" name="email" id="email" required />
<label for="company">Company</label>
<input type="text" name="company" id="company" required />
<label for="company_size">Company size</label>
<select name="company_size" id="company_size">
<option value="1-10">1-10</option>
<option value="11-50">11-50</option>
<option value="51-200">51-200</option>
<option value="201-1000">201-1000</option>
<option value="1000+">1000+</option>
</select>
<label for="message">How can we help?</label>
<textarea name="message" id="message"></textarea>
<input type="text" name="_gotcha" tabindex="-1" autocomplete="off" style="position:absolute;left:-9999px" aria-hidden="true" />
<button type="submit">Send</button>
</form>Accessibility
Accessible by default, and how to keep it that way
- Every field in the code has a visible label tied to it with for and id, so screen readers announce what to enter and a click on the label focuses the field.
- Required fields carry the required attribute, so the browser explains a missing answer before anything is sent. Say “required” in words as well; an asterisk or a colour alone is easy to miss.
- The spam trap field (_gotcha) is hidden from screen readers with aria-hidden and skipped by the Tab key, so people never meet it.
- In the JavaScript versions, show the confirmation or error in an element with role="status" so the result is announced, and keep the entered answers when sending fails.
Changed the fields? Paste your version into the HTML form tester to see exactly what it sends, or run it through the GDPR form checker.
04 / Implementation
How the code talks to Formward
Each form you create gets its own endpoint in the form https://forms.formward.eu/f/your-form-id. The HTML version posts to it directly and the browser is redirected to a thank-you page, so it works without JavaScript.
The Next.js version below sends the same fields with fetch and an Accept: application/json header. Formward then answers with { ok: true, id }, or an error body with 402 when the account is over its allowance and its Over limit folder is full, and 429 when the rate limit kicks in. See responses and status codes.
Next.js client component
"use client";
import { useState } from "react";
export function ContactSalesForm() {
const [sent, setSent] = useState(false);
const [error, setError] = useState("");
async function onSubmit(e: React.FormEvent<HTMLFormElement>) {
e.preventDefault();
const form = e.currentTarget;
setError("");
try {
const res = await fetch("https://forms.formward.eu/f/your-form-id", {
method: "POST",
headers: { Accept: "application/json" },
body: new FormData(form),
});
if (res.ok) {
setSent(true);
form.reset();
return;
}
} catch {
// Network failure: fall through to the same message.
}
// The answers stay in the form so the visitor can try again.
setError("Sending failed. Please try again.");
}
if (sent) return <p role="status">Thanks! Your message has been sent.</p>;
return (
<form onSubmit={onSubmit}>
<label htmlFor="name">Name</label>
<input type="text" name="name" id="name" required />
<label htmlFor="email">Work email</label>
<input type="email" name="email" id="email" required />
<label htmlFor="company">Company</label>
<input type="text" name="company" id="company" required />
<label htmlFor="company_size">Company size</label>
<select name="company_size" id="company_size">
<option value="1-10">1-10</option>
<option value="11-50">11-50</option>
<option value="51-200">51-200</option>
<option value="201-1000">201-1000</option>
<option value="1000+">1000+</option>
</select>
<label htmlFor="message">How can we help?</label>
<textarea name="message" id="message" />
<input
type="text"
name="_gotcha"
tabIndex={-1}
autoComplete="off"
style={{ position: "absolute", left: "-9999px" }}
aria-hidden="true"
/>
<button type="submit">Send</button>
<p role="status">{error}</p>
</form>
);
}
Spam protection
- The generated code already includes the hidden _gotcha honeypot. Leave it in: a bot that fills it gets a normal success response, the submission is filed as spam and no email is sent.
- Every form has a per-IP rate limit, and you can restrict it to your own domains with the allowed-origins list in the form settings.
- Cloudflare Turnstile is optional and works on every plan, including Free. Turn it on in the form settings, add the widget to your markup and Formward checks the token server-side.
- The form settings can also reject disposable email addresses, which is worth turning on when a fake address would waste your time.
What happens after submit
- Each sales lead is emailed to your notification address and stored in the dashboard on every plan.
- From Professional, a webhook can create the lead in your CRM or announce it in the sales channel in Slack.
- Send the page's UTM parameters as hidden fields and each lead carries its campaign source.
Questions
- Should a contact sales form block free email addresses?
- Usually not. Founders and consultants often write from a private address, and a hard block loses them without telling you. Ask for a work email in the label and let sales judge the rest.
- How fast should sales reply?
- As fast as you can promise on the page. From Personal, the autoresponder can confirm receipt at once and state your normal response time, which buys the team a few hours.
Related
- Quote request template
Scope, budget and deadline for priced jobs.
- Lead generation
Campaign source on every lead.
- Webhooks
Send leads to a CRM or a chat channel.
- Next.js forms
The sales form on a Next.js pricing page.
Customize before publishing
- Remove fields you do not need and mark only essential answers as required.
- Replace placeholder wording with terms your audience already understands.
- Add your privacy notice, retention details and expected response time.
- Test keyboard focus, validation errors and the confirmation state on mobile.
Use this template
Create a free account and the form is set up from this template. Copy your endpoint and replace https://forms.formward.eu/f/your-form-id in the code above.