Course evaluation
Evaluate a course and its instructor.
Why these fields
- Course name: Course name captures a short, searchable answer and is required to complete the request.
- Instructor: Instructor captures a short, searchable answer but remains optional.
- Overall rating: Overall rating keeps answers consistent for filtering and routing but remains optional.
- Comments: Comments leaves room for context and detail but remains optional.
Fields
Course nametextrequiredInstructortextOverall ratingselectCommentstextarea
Preview
Code
import { useState } from "react";
export function CourseEvaluationForm() {
const [sent, setSent] = useState(false);
async function onSubmit(e: React.FormEvent<HTMLFormElement>) {
e.preventDefault();
const form = e.currentTarget;
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();
}
}
if (sent) return <p>Thanks! Your message has been sent.</p>;
return (
<form onSubmit={onSubmit}>
<label htmlFor="course">Course name</label>
<input type="text" name="course" id="course" required />
<label htmlFor="instructor">Instructor</label>
<input type="text" name="instructor" id="instructor" />
<label htmlFor="rating">Overall rating</label>
<select name="rating" id="rating">
<option value="Excellent">Excellent</option>
<option value="Good">Good</option>
<option value="Average">Average</option>
<option value="Poor">Poor</option>
</select>
<label htmlFor="comments">Comments</label>
<textarea name="comments" id="comments" />
<input
type="text"
name="_gotcha"
tabIndex={-1}
autoComplete="off"
style={{ position: "absolute", left: "-9999px" }}
aria-hidden="true"
/>
<button type="submit">Send</button>
</form>
);
}
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 with Formward
Create a form, copy your endpoint, and replace https://forms.formward.eu/f/your-form-id in the code above.