Skip to content
Formward
Log inStart free

Feedback forms · 5 fields

Complaint form template

A formal route for customers who are unhappy and want it on record. The complaint type shows who must respond, the reference number connects it to an order or case, and the arrival time shows how long the customer has waited.

Get the code

Complaint form

Live demo: try the fields. Submitting sends nothing.

Why these fields

  • Name

    text · required

    Required. A formal complaint needs someone to answer to.

  • Email

    email · required

    Required. Your acknowledgement and final answer go here.

  • Order / reference number

    text · optional

    Optional, because not every complaint is about an order. When there is one, it saves you asking.

  • Complaint type

    select · optional

    Optional. Product is preselected in the generated HTML, as the list has no empty option; add one so that unclassified complaints do not all look like product faults.

  • Describe the issue

    textarea · required

    Required. Ask what happened, when, and what outcome the customer wants, since the wished-for outcome is often smaller than you fear.

When to use it

Use it when complaints need a consistent process: regulated services, housing, travel, public bodies, or any company that promises a reply within a set number of days. Everyday product questions belong in the support request template.

Tell people what happens next and by when. A complaint form without a stated response time produces a second complaint.

Privacy and GDPR

  • A complaint of the Staff type names or describes an employee. Restrict who can read these and handle them under your HR rules, not in an open channel.
  • Customers describe health, money and family circumstances when explaining why something mattered. Keep the text out of chat tools and analytics.
  • Complaint records often have to be kept for a set time in regulated sectors. Set the form's retention to that period, no longer.

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="order_number">Order / reference number</label>
  <input type="text" name="order_number" id="order_number" />
  <label for="type">Complaint type</label>
  <select name="type" id="type">
    <option value="Product">Product</option>
    <option value="Service">Service</option>
    <option value="Billing">Billing</option>
    <option value="Staff">Staff</option>
    <option value="Other">Other</option>
  </select>
  <label for="details">Describe the issue</label>
  <textarea name="details" id="details" required></textarea>
  <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 ComplaintFormForm() {
  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="order_number">Order / reference number</label>
      <input type="text" name="order_number" id="order_number" />
      <label htmlFor="type">Complaint type</label>
      <select name="type" id="type">
        <option value="Product">Product</option>
        <option value="Service">Service</option>
        <option value="Billing">Billing</option>
        <option value="Staff">Staff</option>
        <option value="Other">Other</option>
      </select>
      <label htmlFor="details">Describe the issue</label>
      <textarea name="details" id="details" required />
      <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 complaint is emailed to your notification address and stored in the dashboard with its arrival time, on every plan.
  • From Personal, an automatic acknowledgement can confirm receipt and state your response deadline.
  • From Personal, add the complaints officer as an extra notification recipient so nothing depends on one inbox.

Questions

Should a complaint form allow anonymous complaints?
This template requires name and email because a formal complaint normally needs an answer. For concerns where people fear consequences, the anonymous feedback template is a better starting point.
Can customers attach photos or receipts?
Add a file field for evidence, which needs Professional or above. On other plans, invite the customer to send evidence in reply to your acknowledgement.

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 →