Connect your HTML form

Keep the form on your site and send it to your WeLoveForms address. Submissions show up in your dashboard.

Get your form address

In your dashboard, click New form, choose Use your own form, give it a name and click Create. The Setup tab shows Your endpoint, an address like https://wlforms.com/f/pk_…. Click Copy endpoint.

Point your form at the address

Set your form’s action to the address and its method to POST:

<form action="https://wlforms.com/f/your-form-key" method="POST">
  <input name="name" placeholder="Your name" required>
  <input name="email" type="email" placeholder="Email" required>
  <textarea name="message" placeholder="Message"></textarea>
  <input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off">
  <button type="submit">Send</button>
</form>

Every field with a name becomes an answer. The Setup tab has this form for JavaScript, React and Astro too.

Send a test

Click Send a test at the top of the page. The test shows up in Inbox with a Test badge.

Send from JavaScript

Send JSON or form data with Accept: application/json, and you get a JSON reply instead of the thank-you page:

await fetch("https://wlforms.com/f/your-form-key", {
  method: "POST",
  headers: { "Content-Type": "application/json", Accept: "application/json" },
  body: JSON.stringify({ name: "June", email: "[email protected]", message: "Hello!" }),
});

Next: Only accept submissions from your websites and Show your own thank-you page.

esc