Handle a multi-step form with a form backend
Collect multi-step form data and submit it all in one POST when the user finishes.
- 1
Accumulate state in JavaScript
Store each step's data in a React state object or local variable.
- 2
Submit all data at once
On the final step's submit, POST the accumulated object to FormLoom as JSON.
- 3
Show a single confirmation
One submission reaches the dashboard; the user sees one thank-you message.
example.ts
// Accumulate across steps, then submit all at once
const allData = { ...step1Data, ...step2Data, ...step3Data };
await fetch("https://api.formloom.ai/submit/YOUR_ACCESS_KEY", {
method: "POST",
headers: { "Content-Type": "application/json", Accept: "application/json" },
body: JSON.stringify(allData),
});FAQ
Usually no — submit once at the end. The FormLoom dashboard stores the whole payload as a single row.