Skip to content

After-sales complaint form

A guided complaint form: order number in the right format, reason, delivery date, description, what the customer wants and an optional photo.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

An incomplete complaint costs a round of emails. This form asks upfront for what customer service needs: the order number, checked against the CMD-2026-04817 format (uppercased automatically), the order email, the reason, the delivery date (hidden for a parcel not received, never in the future), a 20 to 1,000 character description with a counter, the customer's wish (refund, exchange, repair) and an optional photo checked before sending (JPEG, PNG or WebP, 5 MB at most). Each error is flagged with aria-invalid and a message linked to the field, focus moves to the first field to fix, and the confirmation repeats the order and response time in a role="status" region. The number format is a single regular expression to change; sending plugs into your server or support tool. Labelled native fields, 44 px file button, AA contrast in light and dark mode, no horizontal scrolling from 360 px. Example: the customer service of a kitchenware shop.

Code

Loading the code…

The code of this component in

Archive contents

formulaire-reclamation-sav-html-tailwind.zip3 files · 6 Ko

  • index.html14 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 3, 2026.

Reviews

No reviews yet.

In the same spirit

  • A recruitment form for small businesses: target position, introduction, CV checked in the browser and GDPR consent, with inline errors.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A quote request form for tradespeople: the customer describes the work, picks a start date range and attaches up to six site photos, each with a preview, its size and a button to remove it.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A quote request form whose labels, hints and error messages are full French sentences, still readable at 320 px: nothing overflows, nothing is cut off, and each error is tied to its field.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Visitors pick a package and tick options: the pre-tax total, VAT and total including tax update live, and the summary is sent with the contact form.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component