Nuxt forms

Add an EU-hosted submission backend to a Nuxt form without operating a separate API. Browse 46 templates that generate clean Nuxt code pointing to your Formward endpoint.

Implementation notes

  1. Paste the generated Vue component
  2. Replace the endpoint placeholder
  3. Test the response handling in the deployed app

A working Nuxt contact form

This server-rendered example is generated specifically for Nuxt. Replace the endpoint placeholder with your public Formward form ID; it is not a secret.

Best for

Nuxt applications that need Vue-style reactive feedback with a managed EU form backend and no custom API route.

Watch for

Account for client and server rendering boundaries, and keep browser-only submission state out of server-rendered setup code.

<!-- components/SimpleContactForm.vue — auto-imported by Nuxt. -->
<script setup lang="ts">
import { ref } from "vue";

const sent = ref(false);

async function onSubmit(e: Event) {
  const form = e.target as HTMLFormElement;
  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) {
    sent.value = true;
    form.reset();
  }
}
</script>

<template>
  <p v-if="sent">Thanks! Your message has been sent.</p>
  <form v-else @submit.prevent="onSubmit">
    <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="message">Message</label>
    <textarea name="message" id="message" 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>
</template>

Application forms

6

Contact forms

6

Donation forms

3

Feedback forms

9

Order forms

5

Registration forms

5

Request forms

9

Signup forms

3
Nuxt form templates, EU-hosted backend | Formward