# Formward
> Formward is a European form backend for HTML forms. It lets developers point a form at an endpoint and receive, filter, store, email, export, and optionally enrich submissions with EU-based AI. Formward is hosted in Sweden and is designed for GDPR-conscious teams: Formward itself stores and processes submissions in the EU, and data leaves the EU only through optional services or destinations the customer switches on.
Formward is a product operated by EGF Group AB, a company registered in Sweden and based in Stockholm. The brand and product name is "Formward". The product is framework-agnostic and works with plain HTML form POSTs, fetch/AJAX submissions, and frontend frameworks. No SDK is required.
## Implementation
Point a form at its Formward endpoint: https://forms.formward.eu/f/YOUR_FORM_ID. No SDK, no server code. Replace YOUR_FORM_ID with the id of your own form: sign up at https://formward.eu/signup, create a form in the dashboard, and copy the endpoint URL shown on the form's page.
Minimal HTML form:
```html
```
Submitting with fetch() and reading the JSON response:
```js
const form = document.querySelector("form");
form.addEventListener("submit", async (event) => {
event.preventDefault();
const res = await fetch(form.action, {
method: "POST",
headers: { Accept: "application/json" },
body: new URLSearchParams(new FormData(form)),
});
const data = await res.json().catch(() => ({ ok: false, error: "Unexpected response" }));
if (res.ok && data.ok) {
form.reset(); // data.id is the stored submission's id
} else {
console.error(res.status, data.error); // for example 429 "rate limit"
}
});
```
Response modes: a request with an Accept: application/json header (or any X-Requested-With header) gets JSON back, { "ok": true, "id": "..." } on success and { "ok": false, "error": "..." } with an HTTP error status on failure. A classic HTML form post is redirected with a 302 to _redirect, else the form's redirect URL, else Formward's thank-you page. _redirect is ignored in JSON mode.
If the form lists allowed origins, a post from an origin not on that list is rejected with 403 "origin not allowed", so add your site's origin in the form settings before going live.
Special fields (all optional; full reference at https://formward.eu/docs/fields):
* _gotcha: honeypot. Any non-whitespace value marks the submission as spam; it is kept in the form's spam folder, sends no notification, and the sender still gets a success-shaped response.
* _redirect: where a classic post redirects after success. A relative path (such as /thank-you, resolved against the submitting page's origin) or an absolute URL whose origin is in the form's allowed origins; anything else is ignored.
* _subject: subject line of the notification email. Default: "New submission to