Skip to content
Formward
Log inStart free

Registration forms · 4 fields

Contest entry form template

For giveaways, slogan competitions and prize draws. Entrants give a name and an email, write their entry and tick that they accept the rules, and the form closes when the contest does.

Get the code

Contest entry

Live demo: try the fields. Submitting sends nothing.

Why these fields

  • Full name

    text · required

    Required. Needed to announce and contact the winner.

  • Email

    email · required

    Required. Turn on the disposable-address filter in the form settings to make repeat entries with throwaway addresses harder.

  • Your entry / submission

    textarea · required

    Required textarea. For a pure prize draw with nothing to write, delete it; for a creative contest, state the maximum length and add maxlength to match.

  • I agree to the contest rules

    checkbox · required

    Required checkbox, so the browser will not submit without it. Link the rules in the label text. Renamed to _consent with consent capture on, the acceptance is recorded with its wording and time.

When to use it

Use it for a contest you run yourself on your own site. Contests held on a social platform must follow that platform's promotion rules as well, and prize draws are regulated differently from country to country, so check before you launch.

A popular giveaway can bring more entries in a day than a quiet month brings messages. Check your plan's monthly submission allowance first; Free includes 50.

Privacy and GDPR

  • Use entrants' details to run the contest and contact winners. Turning the list into a marketing list needs a separate, unticked opt-in.
  • Say in the rules whether winners' names are published, and delete the other entries when the prizes are handed out.

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="entry">Your entry / submission</label>
  <textarea name="entry" id="entry" required></textarea>
  <label>
    <input type="checkbox" name="agree" id="agree" required /> I agree to the contest rules
  </label>
  <input type="text" name="_gotcha" tabindex="-1" autocomplete="off" style="position:absolute;left:-9999px" aria-hidden="true" />
  <button type="submit">Send</button>
</form>

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.

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 ContestEntryForm() {
  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="entry">Your entry / submission</label>
      <textarea name="entry" id="entry" required />
      <label>
        <input type="checkbox" name="agree" id="agree" required /> I agree to the contest rules
      </label>
      <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 entry is emailed to your notification address and stored in the dashboard on every plan.
  • Set the closing date in the response settings to the moment the contest ends; later visitors see your closed message.
  • From Personal, export all entries as CSV to draw a winner or pass them to a jury.

Questions

How do I prevent people from entering twice?
Do not rely on the form to spot duplicates. Export the entries, remove repeated email addresses before the draw, and state in the rules that only one entry per person counts.
Can entrants upload a photo or a drawing?
Yes, if you add a file field with an accept attribute for images, so the file picker only offers suitable files. Uploads start at Professional.

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.

Use this template →