Standard HTML form submission. The browser sends the form data as URL-encoded
key-value pairs. Every field name becomes a column in your dashboard.
const data = { name: "Ryan", email: "[email protected]", message: "Hello!" };
const res = await fetch("http://formcore.io/f/YOUR_FORM_ID", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(data),
});
const result = await res.json();
// If a redirect URL is configured, the server includes it in the response.
// Navigate there, or handle the success inline.
if (result.redirect) {
window.location.href = result.redirect;
} else {
console.log("Submitted!", result.id);
}
Works from any JavaScript environment — browser, Node.js, Deno, or Bun.
No libraries needed beyond the built-in
fetch()
API. If you configure a Success Redirect URL in the dashboard,
it will be returned in the response as
redirect.