Registration forms · 5 fields
Course enrollment form template
For language schools, studios, evening classes and training providers. A student picks a course, says which time of day suits them and when they want to start, and you place them in a group.
Course enrollment
Live demo: try the fields. Submitting sends nothing.
02 / Field guide
Why these fields
Full name
text · requiredRequired. The name for the class list and any certificate.
Email
email · requiredRequired. Placement, timetable and invoice are sent here.
Course
text · requiredRequired free text in the template. A select with your actual courses avoids enrolments for classes you do not run.
Preferred schedule
select · optionalOptional. Morning is preselected in the generated HTML, so add an empty option, or you will believe that everybody wants mornings.
Start date
date · optionalOptional date. Leave it out if your terms start on fixed dates, and state those dates instead.
When to use it
Use it when you form groups by hand from the answers. If places are sold with fixed dates and payment at sign-up, a booking system does more.
With a fixed list of courses, change the course field to a select. For a single course, make it a hidden field and name the course in the page heading.
Privacy and GDPR
- Enrolments for children should be made by a parent or guardian, with the adult's contact details in the name and email fields.
- Keep class lists for the length of the course and whatever your bookkeeping requires, not indefinitely.
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">Full 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="course">Course</label>
<input type="text" name="course" id="course" required />
<label for="schedule">Preferred schedule</label>
<select name="schedule" id="schedule">
<option value="Morning">Morning</option>
<option value="Afternoon">Afternoon</option>
<option value="Evening">Evening</option>
<option value="Weekend">Weekend</option>
</select>
<label for="start_date">Start date</label>
<input type="date" name="start_date" id="start_date" />
<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 CourseEnrollmentForm() {
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">Full 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="course">Course</label>
<input type="text" name="course" id="course" required />
<label htmlFor="schedule">Preferred schedule</label>
<select name="schedule" id="schedule">
<option value="Morning">Morning</option>
<option value="Afternoon">Afternoon</option>
<option value="Evening">Evening</option>
<option value="Weekend">Weekend</option>
</select>
<label htmlFor="start_date">Start date</label>
<input type="date" name="start_date" id="start_date" />
<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 enrolment is emailed to your notification address and kept in the dashboard on every plan.
- From Personal, an automatic reply can confirm that the enrolment arrived and explain how places are allocated.
- A submission limit in the response settings closes enrolment when the course is full and shows your closed message.
Questions
- Can I limit the number of students?
- Yes, per form. Set a submission limit in the response settings and the form closes itself at that number. With several courses on one form the limit covers them all together, so give each capped course a form of its own.
- How do students pay the course fee?
- Not in the form. Send an invoice or a payment link with the confirmation, or set the form's redirect URL to your payment page.
Related
- Course evaluation template
Feedback when the course ends.
- Webinar registration template
For a single online session.
- Event registration template
Tickets and dietary needs.
- Registration templates
Contest, warranty and event sign-ups.
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.