Start collecting form submissions from your Flutter app with FormSubmit in 2 minutes. Create your form in FormSubmit and paste your unique URL inside your form. Check out the code examples and detailed tutorial below to get started.
import { useState } from "react";
export default function Fetch() {
const [email, setEmail] = useState("");
const [message, setMessage] = useState("");
const [submitted, setSubmitted] = useState(false);
const [error, setError] = useState("");
function submit(e) {
e.preventDefault();
fetch("https://formAPI.com/s/XXXXXXX", {
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
body: JSON.stringify({ email, message }),
})
.then((res) => res.json())
.then((res) => {
if (res.code === 200) {
setSubmitted(true);
} else {
setError(res.message);
}
})
.catch((error) => setError(error));
}
return (
<form onSubmit={submit}>
{/* Form implementation */}
</form>
);
}
Flutter is an open-source UI software development toolkit by Google for building natively compiled applications for mobile, web, and desktop from a single codebase. FormSubmit works seamlessly with Flutter, and this guide will show you how to use it.
The `http` package is a simple and effective way to send HTTP requests in Flutter. Below is an example of how to send form data to FormSubmit using the HTTP package. Ensure that you replace “https://formAPI.com/s/XXXXXXX” with your unique endpoint URL.
import { useState } from "react";
export default function Fetch() {
const [email, setEmail] = useState("");
const [message, setMessage] = useState("");
const [submitted, setSubmitted] = useState(false);
const [error, setError] = useState("");
function submit(e) {
e.preventDefault();
fetch("https://formAPI.com/s/XXXXXXX", {
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
body: JSON.stringify({ email, message }),
})
.then((res) => res.json())
.then((res) => {
if (res.code === 200) {
setSubmitted(true);
} else {
setError(res.message);
}
})
.catch((error) => setError(error));
}
return (
<form onSubmit={submit}>
{/* Form implementation */}
</form>
);
}
The `http` package is a simple and effective way to send HTTP requests in Flutter. Below is an example of how to send form data to FormSubmit using the HTTP package. Ensure that you replace “https://formAPI.com/s/XXXXXXX” with your unique endpoint URL.
import { useState } from "react";
export default function Fetch() {
const [email, setEmail] = useState("");
const [message, setMessage] = useState("");
const [submitted, setSubmitted] = useState(false);
const [error, setError] = useState("");
function submit(e) {
e.preventDefault();
fetch("https://formAPI.com/s/XXXXXXX", {
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
body: JSON.stringify({ email, message }),
})
.then((res) => res.json())
.then((res) => {
if (res.code === 200) {
setSubmitted(true);
} else {
setError(res.message);
}
})
.catch((error) => setError(error));
}
return (
<form onSubmit={submit}>
{/* Form implementation */}
</form>
);
}
The `http` package is a simple and effective way to send HTTP requests in Flutter. Below is an example of how to send form data to FormSubmit using the HTTP package. Ensure that you replace “https://formAPI.com/s/XXXXXXX” with your unique endpoint URL.
import { useState } from "react";
export default function Fetch() {
const [email, setEmail] = useState("");
const [message, setMessage] = useState("");
const [submitted, setSubmitted] = useState(false);
const [error, setError] = useState("");
function submit(e) {
e.preventDefault();
fetch("https://formAPI.com/s/XXXXXXX", {
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
body: JSON.stringify({ email, message }),
})
.then((res) => res.json())
.then((res) => {
if (res.code === 200) {
setSubmitted(true);
} else {
setError(res.message);
}
})
.catch((error) => setError(error));
}
return (
<form onSubmit={submit}>
{/* Form implementation */}
</form>
);
}
Select HTTPS monitoring to track website uptime, SSL expiry, redirects, and response codes from global locations.
Type your website URL, add optional headers or auth tokens, then pick the check interval you prefer.
We run the first check instantly and alert on downtime, SSL errors, or failed HTTPS responses.
USe CAses
A collection of example HTML forms with code that you can edit live, then download or copy/paste. A minimal form reset css is included that should work with most sites. A minimal form reset css is included that should work with most sites. A minimal form reset css is included that should work with most sites.
FormAPI
Collect submissions without a backend—add a headless endpoint to any <form>
Available On
Copyright © 2025 - Mentcube Innovations Pvt Ltd. All Rights Reserved.
FormAPI