JitwareForms

Documentation

Everything you need to connect a form to Jitware Forms.

Quickstart

Create a form in the dashboard and copy its access key. Then point your HTML form at our endpoint. Every input needs a name; that name is what you see in the email.

<form action="https://forms.jitware.be/submit" method="POST">
  <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">

  <input type="text" name="name" required>
  <input type="email" name="email" required>
  <textarea name="message" required></textarea>

  <!-- Honeypot spam protection: keep it hidden -->
  <input type="checkbox" name="botcheck" style="display:none">

  <button type="submit">Send</button>
</form>

Special fields

These optional fields control the service and are not shown as form data. They are compatible with Web3Forms, so existing forms work by changing the action URL and access key.

FieldWhat it does
access_keyRequired. Identifies your form.
subjectEmail subject; overrides the form setting. Supports variables.
from_nameSender name shown in your inbox.
email / replytoUsed as Reply-To, so you can answer the visitor directly. Also recognised: e-mail, emailadres.
nameShown as the sender's name. Also recognised: naam, full_name.
redirectThank-you page for plain HTML forms (http/https).
botcheckHidden honeypot checkbox. If ticked, the submission is stored as spam.

JavaScript (fetch)

Send Accept: application/json to get a JSON response instead of a redirect.

const form = document.querySelector('#contact-form');

form.addEventListener('submit', async (event) => {
  event.preventDefault();
  const response = await fetch('https://forms.jitware.be/submit', {
    method: 'POST',
    headers: { Accept: 'application/json' },
    body: new FormData(form), // includes the hidden access_key
  });
  const result = await response.json();

  if (result.success) {
    window.location.href = result.redirect ?? '/thank-you';
  } else {
    alert(result.message);
  }
});

React / Next.js

export default function ContactForm() {
  const [status, setStatus] = useState('idle');

  async function onSubmit(event) {
    event.preventDefault();
    setStatus('sending');
    const data = new FormData(event.currentTarget);
    data.append('access_key', process.env.NEXT_PUBLIC_FORMS_KEY);

    const res = await fetch('https://forms.jitware.be/submit', { method: 'POST', headers: { Accept: 'application/json' }, body: data });
    setStatus((await res.json()).success ? 'sent' : 'error');
  }

  return (
    <form onSubmit={onSubmit}>
      <input name="name" required />
      <input name="email" type="email" required />
      <textarea name="message" required />
      <button disabled={status === 'sending'}>Send</button>
      {status === 'sent' && <p>Thank you!</p>}
    </form>
  );
}

WordPress & Elementor

Elementor's own Form widget sends to WordPress, not to other services. Use an HTML widget (or a Custom HTML block in the block editor) and paste the form code from the Quickstart, styled to your theme. For an existing HTML form, only change its action to https://forms.jitware.be/submit and add the hidden access_key input.

File uploads

Turn on Settings → File Uploads for the form (Pro plan). The form needs enctype="multipart/form-data". Up to 5 files of 10 MB each; images, PDF, Office documents, CSV, text and zip. Files appear in the File Manager and as download links in the email.

<form action="https://forms.jitware.be/submit" method="POST" enctype="multipart/form-data">
  <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
  <input type="file" name="attachment">
  <input type="file" name="photos[]" multiple>
  ...
</form>

Redirect & thank-you page

For plain HTML forms, set a thank-you page under Settings → Email Configuration → Redirect URL, or add a hidden redirect field. Without one, visitors see a neutral confirmation page with a link back. JavaScript forms receive the configured URL as redirect in the JSON response.

Spam protection

<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<div class="cf-turnstile" data-sitekey="YOUR_SITE_KEY"></div>

Google reCAPTCHA v2 (checkbox). For v3, put the token from grecaptcha.execute() in a g-recaptcha-response field; scores below 0.5 are rejected.

<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<div class="g-recaptcha" data-sitekey="YOUR_SITE_KEY"></div>

Email variables

Subjects, intro text and auto-replies can include form fields in curly braces, e.g. New request from {name}. Names are not case-sensitive; {form} is the form's name. Unknown variables are left out.

Responses & errors

StatusMeaning
200{"success": true, "message": "...", "data": {...}, "redirect": "..."}
400Missing access_key.
401Unknown or inactive access key.
403Submitted from a domain that is not allowed, or the form is unavailable.
422Empty form, failed captcha or a rejected file.
429Too many submissions (rate limit or monthly plan limit).

Webhooks

Add a Webhook integration and we POST each submission as JSON to your https URL:

{
  "event": "submission.created",
  "form": { "id": "…", "name": "Contact" },
  "submission": {
    "id": "…", "created_at": "2026-09-26T10:15:00+00:00",
    "name": "Jan Peeters", "email": "jan@example.com",
    "data": { "name": "Jan Peeters", "email": "jan@example.com", "message": "…" },
    "files": [ { "name": "plan.pdf", "size": 52340, "url": "https://…" } ]
  }
}

With a signing secret, verify the X-Signature header (HMAC-SHA256 of the raw body):

// PHP
$expected = 'sha256=' . hash_hmac('sha256', file_get_contents('php://input'), $secret);
if (! hash_equals($expected, $_SERVER['HTTP_X_SIGNATURE'] ?? '')) { http_response_code(401); exit; }

// Node.js
const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(rawBody).digest('hex');

Failed deliveries are retried (after 1 minute, 10 minutes and 1 hour) and shown in the integration's delivery log.

Google Sheets

Add a Google Sheets integration: the dashboard gives you a small Apps Script to paste into your sheet (Extensions → Apps Script), which you deploy as a web app. Each submission becomes a row; new fields get their own column automatically. Your data goes directly into your own Google account.

REST API

Create an API key under API Keys in the dashboard (Pro plan) and send it as a Bearer token. Keys are read-only unless you allow deleting. There are two kinds:

RequestReturns
GET /api/v1/workspacesThe workspaces this key can read.
GET /api/v1/formsYour forms with their workspace and submission counts.
GET /api/v1/forms/{id}/submissionsSubmissions, newest first. Query: since (date), spam (0/1), per_page (max 100), page.
GET /api/v1/submissions/{id}One submission, with file links.
DELETE /api/v1/submissions/{id}Deletes a submission (keys with delete permission).
curl https://forms.jitware.be/api/v1/forms \
  -H "Authorization: Bearer jf_live_…"

Limit: 120 requests per minute per key. Keep API keys on your server; never put them in website code.