Order forms · 6 fields
T-shirt order form template
For the person collecting shirt orders for a club, a team, a company event or a small merch run. Each submission is one size in one colour with a quantity, which adds up neatly into an order for the printer.
T-shirt order
Live demo: try the fields. Submitting sends nothing.
02 / Field guide
Why these fields
Name
text · requiredRequired. On team kits this may also be the name printed on the back, so say if it is.
Email
email · requiredRequired. Payment details and the collection date are sent here.
Size
select · requiredRequired. The list starts with an empty Choose a size option, so a skipped answer cannot turn into an extra-small shirt. Rename the sizes to what the printer offers.
Color
text · optionalOptional free text. If the printer offers three colours, replace it with a select of exactly those three.
Quantity
number · requiredRequired number, at least 1 (the generated code sets min="1"). Consider adding a max too, since a stray extra zero is expensive once the shirts are printed.
Notes
textarea · optionalOptional. Useful for a name or number on the back, or a fitted cut.
When to use it
Use it for group orders with a deadline: everyone orders by Friday, you send one list to the printer. For an ongoing shop with stock and payment, a real checkout is the right tool.
Someone who wants two sizes submits twice, or you copy the size and quantity fields in the markup. Say which on the page.
Privacy and GDPR
- For children's teams the order is normally placed by a parent. Collect the parent's contact details and no more about the child than the size and the name to be printed.
- After the shirts are handed out, the order list has no further use. Delete it or let the retention period remove it.
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">Email</label>
<input type="email" name="email" id="email" required />
<label for="size">Size</label>
<select name="size" id="size" required>
<option value="">Choose a size</option>
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="XXL">XXL</option>
</select>
<label for="color">Color</label>
<input type="text" name="color" id="color" />
<label for="quantity">Quantity</label>
<input type="number" name="quantity" id="quantity" min="1" required />
<label for="notes">Notes</label>
<textarea name="notes" id="notes"></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 TshirtOrderForm() {
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">Email</label>
<input type="email" name="email" id="email" required />
<label htmlFor="size">Size</label>
<select name="size" id="size" required>
<option value="">Choose a size</option>
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="XXL">XXL</option>
</select>
<label htmlFor="color">Color</label>
<input type="text" name="color" id="color" />
<label htmlFor="quantity">Quantity</label>
<input type="number" name="quantity" id="quantity" min="1" required />
<label htmlFor="notes">Notes</label>
<textarea name="notes" id="notes" />
<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 shirt order is emailed to your notification address and kept in the dashboard on every plan.
- From Personal, export all orders as CSV and total them per size and colour for the printer.
- A closing date in the response settings enforces the order deadline without you policing it.
Questions
- How do people pay for their shirt?
- Outside the form. Set the redirect URL to a payment link, or collect the money when the shirts are handed out. The form records the order, not the payment.
- Can I add a size chart?
- Yes, in your own page: put an image or a table above the form. Measurements in centimetres prevent more wrong orders than any validation.
Related
- Order enquiry template
Other goods, with a delivery address.
- Bakery order template
Orders with a pickup date.
- Order templates
All order forms.
- Online forms without a website
Share the order form as a link in the group chat.
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.