Nuxt.js is a progressive framework based on Vue.js to create modern web applications.
Start collecting data in a matter of clicks.
Let Formspark take care of the servers, databases, and analytics.
Set up any form in seconds.
Out of the box Vue support
Compatible with Jamstack
<template> <form @submit.prevent="submitForm"> <label> <span>Message</span> <textarea name="message" v-model="message"></textarea> </label> <button type="submit">Submit</button> </form> </template> <script> const FORMSPARK_ACTION_URL = "https://submit-form.com/your-form-id"; export default { data() { return { message: "", }; }, methods: { async submitForm() { await fetch(FORMSPARK_ACTION_URL, { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json", }, body: JSON.stringify({ message: this.message, }), }); alert("Form submitted"); }, }, }; </script>