Add a working contact form to any Vue.js app using FormsList.
TL;DR
To add a contact form to Vue.js without a backend, create a component with v-model bindings and submit to a FormsList endpoint using fetch. Point your form to formslist.com/f/YOUR_HASH and FormsList handles submissions, spam filtering, and email notifications automatically.
Sign up at formslist.com, create a new form, and copy your endpoint URL.
Create a Vue component with ref() and v-model bindings.
<script setup>
import { ref } from 'vue'
const name = ref('')
const email = ref('')
const message = ref('')
const submitted = ref(false)
async function handleSubmit() {
const res = await fetch('https://formslist.com/f/YOUR_HASH', {
method: 'POST',
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
body: JSON.stringify({ name: name.value, email: email.value, message: message.value }),
})
if (res.ok) submitted.value = true
}
</script>
<template>
<p v-if="submitted">Thanks! We'll be in touch.</p>
<form v-else @submit.prevent="handleSubmit">
<input v-model="name" placeholder="Name" required />
<input v-model="email" type="email" placeholder="Email" required />
<textarea v-model="message" placeholder="Message" required />
<button type="submit">Send</button>
</form>
</template>Import and use <ContactForm /> in any page.
Submit a test message and verify in your FormsList dashboard.
Yes, use data() and methods instead of ref() and <script setup>. The fetch call is identical.
Yes. Use $fetch instead of fetch for better error handling in Nuxt 3.
FormsList includes honeypot spam protection on the free tier and AI spam scoring on all plans.
200 free submissions a month and a live endpoint in 30 seconds. No server, no credit card, just point your form at it.