Skip to content
Formward
Log inStart free

Contact forms · 4 fields

Inquiry form template

A catch-all for questions that are neither support nor sales: partnerships, opening hours, whether you take on a certain kind of work. The optional company field tells you if a business or a private person is asking.

Get the code

Inquiry

Live demo: try the fields. Submitting sends nothing.

Why these fields

  • Name

    text · required

    Required. One line, no title or salutation needed.

  • Email

    email · required

    Required, and the address your reply is sent to.

  • Company

    text · optional

    Optional by design. Private individuals leave it blank, and a filled-in value is a quick sign of a business inquiry.

  • Your inquiry

    textarea · required

    Required. It is the only place the sender explains themselves, so give the textarea four or five visible rows.

When to use it

Put it on an about page, a footer link or a product page where people have a question before they are customers. When you already know the question is about buying, the contact sales template qualifies the lead better.

Change the label of the big field to the question you want answered, such as What would you like to know about our courses. A specific prompt gets a specific inquiry.

Privacy and GDPR

  • An inquiry is answered and then mostly forgotten. Do not move the sender onto a mailing list because they once asked a question.
  • If inquiries sometimes turn into customer relationships, copy those into your CRM and let the rest expire with the form's retention period.

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="company">Company</label>
  <input type="text" name="company" id="company" />
  <label for="inquiry">Your inquiry</label>
  <textarea name="inquiry" id="inquiry" 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 InquiryForm() {
  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="company">Company</label>
      <input type="text" name="company" id="company" />
      <label htmlFor="inquiry">Your inquiry</label>
      <textarea name="inquiry" id="inquiry" 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

  • Inquiries are sent to your notification address and listed in the dashboard on every plan.
  • From Personal, a second colleague can receive every inquiry too, which helps when one of you is away.
  • From Professional, a webhook can post new inquiries to a team chat channel.

Questions

What is the difference between an inquiry form and a contact form?
Mostly the framing. A contact form invites any message; an inquiry form asks for a question and usually sits next to the thing being asked about. This template also adds a company field.
How do I know which page an inquiry came from?
Add a hidden field with the page name to each copy of the form. It arrives with the submission, so you see the context without asking the sender.

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 →