Nuxt multi-step form
Build a multi-step form in Nuxt with no server route. Collect fields across steps in a reactive object (or a Pinia store if the wizard spans routes), then post once to Formpaste at the end. Copy the wizard component and add your access key.
How to build it
- Create a form in your Formpaste dashboard and copy its access key.
- Copy the multi-step component below into a Nuxt page or component.
- Replace YOUR_ACCESS_KEY_HERE with your access key, then deploy.
Prompt for your AI coding agent
Add a Formpaste multi-step form to my Nuxt 3 app. Use a Vue component with <script setup> that collects name, email and message across several steps in a reactive object with Next and Back buttons, then POSTs once at the end as application/x-www-form-urlencoded (URLSearchParams) to https://api.formpaste.com/submit with a hidden access_key. Do not post on every step and do not add a server route. Use Pinia only if the wizard spans routes.Or connect the Formpaste MCP server to Claude Code, Codex, Cursor, Claude Desktop, VS Code, or any mcp-remote client. See the setup guide.
Nuxt gotchas
Nuxt gives you server routes, but for a form you do not need one. A Formpaste form is a Vue component that posts straight to Formpaste, so there is no server/api handler and no Nitro route to write. It works with SSR or a static nuxi generate build.
No server route needed
You do not need a server/api/ endpoint or a Nitro handler. The component posts directly to the Formpaste endpoint, which keeps the app deployable anywhere, including a fully static nuxi generate build.
It is a Vue component
Nuxt is Vue, so the form is a single-file component with v-model and an @submit.prevent handler. Use the Vue code from the toggle above - it works the same inside Nuxt.
Pinia only if you want shared state
For a multi-step form you can hold the step state in a Pinia store if it spans routes, but local component state is simpler for a single-page wizard. Either way the final step posts once to Formpaste.
SSR or static, same form
Because the form posts to an external endpoint, it works whether you deploy with SSR or as a static site. No server code of yours runs at submit time.
What to get right
One form, several screens
A multi-step form is a single submission split across steps in the UI. Collect all the fields in client state, then post once at the end.
Route per step is optional
You can give each step its own URL for back-button support, or keep it all on one page with local state. Both post the same final payload.
Post the whole payload once
Do not post on every step. Gather the fields as the user advances and send one request when they finish.
How it works
Three simple steps for form submissions to land in your email inbox.
Create your form, set your form's action URL to Formpaste's endpoint, and add your access key.
Create your form
Sign up, verify your email, and create an access key in your dashboard.
Copy the code
Paste the snippet above into your project. Pick CSS or Tailwind to match your site.
<script setup lang="ts">
import { ref, reactive } from "vue";
const ENDPOINT = "https://api.formpaste.com/submit";
const step = ref(0);
const data = reactive({ name: "", email: "", message: "" });
async function submit() {
const body = new URLSearchParams({ access_key: "YOUR_ACCESS_KEY_HERE", ...data });
await fetch(ENDPOINT, { method: "POST", body });
}
</script>
<template>
<form @submit.prevent="submit">
<input v-if="step === 0" v-model="data.name" placeholder="Name" required />
<input v-else-if="step === 1" type="email" v-model="data.email" placeholder="Email" required />
<textarea v-else v-model="data.message" placeholder="Message" />
<button v-if="step > 0" type="button" @click="step--">Back</button>
<button v-if="step < 2" type="button" @click="step++">Next</button>
<button v-else type="submit">Submit</button>
</form>
</template>
Add your access key
Replace the placeholder with your access key to start receiving submissions.
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY_HERE">Nuxt multi-step form FAQ
Paste a form. Get submissions.
Instantly without setting up any backend, servers or databases. 250 submissions/mo free - no credit card.