Tutorials

Store and manage form submissions in Strapi v5

Store form submissions in Strapi v5 with FormFlow. Test server validation, review responses, change inbox statuses, and export filtered submissions as CSV or JSON.

A contact form sending a response to an inbox with New, Read and Processed statuses, followed by a CSV export, on a navy and violet background.

Send a contact-form response to Strapi, find it in your submission inbox, mark it as processed, and export the responses you need. This tutorial follows that whole path with FormFlow on Strapi v5, including a failed validation request so you can check that invalid input is rejected.

The workflow uses FormFlow's free core. CSV and JSON exports are free; Excel and PDF exports require Pro. You don't need a paid export format to open a CSV in a spreadsheet application.

Start with an active form

You'll need a running Strapi v5 project, access to its admin panel and a terminal with curl. If FormFlow isn't installed, run this from your Strapi project:

npm install @formflowjs/strapi-plugin-formflow

Enable it in config/plugins.ts, preserving any other plugin configuration:

export default () => ({
  formflow: { enabled: true },
});

Rebuild and start Strapi:

npm run build
npm run develop

Open FormFlow in the Strapi admin. Create a form named Contact requests, give it the slug contact-requests, and add these fields:

Field labelField nameTypeRequired
NamenameTextYes
EmailemailEmailYes
MessagemessageText areaYes

Save the form and make sure it is active. Field names are the keys your frontend sends. A field labeled “Email” with the name work_email needs a work_email payload key, for example.

Keep the form simple for this first check: no file fields, conditional rules or multi-step layout. If you enable a captcha, complete its token flow before testing submissions. The React form tutorial covers a complete frontend with labels, loading states, validation messages and honeypot handling.

Fetch the schema before submitting

With Strapi running locally on port 1337, set the origin once:

STRAPI_ORIGIN='http://localhost:1337'
 
curl --silent --show-error \
  "$STRAPI_ORIGIN/api/formflow/forms/contact-requests"

The public response wraps the schema in a data object. Check that it contains the expected field names. If you receive a 404, check the exact slug and whether the form is active before debugging the submission payload.

FormFlow's public endpoints are unauthenticated by default. A deployment with additional authentication policies needs the corresponding access setup. Never put a Strapi admin session token in your public frontend. Schema retrieval and submission are public-facing operations; reading the submission inbox is an authenticated admin operation.

Store a valid response

Send the field values as a flat JSON object:

curl --include --request POST \
  "$STRAPI_ORIGIN/api/formflow/forms/contact-requests/submit" \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "Ada Example",
    "email": "ada@example.com",
    "message": "Please send me more information."
  }'

Use synthetic information while testing. The submission request is not wrapped in a Strapi { "data": ... } envelope. The public API uses the form slug, while FormFlow's admin operations identify forms and submissions by their document IDs.

A successful request returns a data object containing success, the configured success message and a nullable redirect URL. The public success response does not expose the stored submission's document ID. Open the inbox to verify persistence rather than expecting that ID in the public response.

Note

An enabled honeypot can intentionally return a success-shaped response for a trapped bot without storing a submission. Keep the honeypot empty for a legitimate submission. Seeing the new response in the admin inbox is the persistence check.

If you use the framework-independent SDK, the equivalent request uses the fetched schema and a values object:

npm install @formflowjs/core
import { createFormFlowClient, isFormFlowError } from '@formflowjs/core';
 
const client = createFormFlowClient({ baseUrl: 'http://localhost:1337' });
 
async function sendContactRequest() {
  try {
    const schema = await client.getForm('contact-requests');
    return await client.submit('contact-requests', {
      schema,
      values: {
        name: 'Ada Example',
        email: 'ada@example.com',
        message: 'Please send me more information.',
      },
    });
  } catch (error) {
    if (isFormFlowError(error) && error.code === 'validation') {
      console.error(error.fieldErrors);
    }
    throw error;
  }
}

Call sendContactRequest() from your application and handle its resolved or rejected promise. This is the transport example; in a UI, show field errors beside the relevant labeled inputs and a clear success or retry state. A browser on a different origin also needs the appropriate Strapi CORS configuration.

The SDK uses the public API. It doesn't provide an admin inbox client or grant access to stored responses. For React rendering, build on the existing React implementation rather than putting admin API calls in your form component.

Prove that invalid input is rejected

Now send an invalid email and leave out the required message:

curl --include --request POST \
  "$STRAPI_ORIGIN/api/formflow/forms/contact-requests/submit" \
  --header 'Content-Type: application/json' \
  --data '{"name":"Ada Example","email":"not-an-email"}'

For the field configuration above, expect HTTP 400 with validation details under error.details.errors, keyed by field name. The SDK maps a server validation failure to a FormFlowError with code: 'validation' and fieldErrors.

Check the inbox again: this invalid request should not add a submission. Client-side checks help visitors correct mistakes, but the server must still validate requests made directly to the endpoint. The API contract guide explains the request, serialization and error boundaries in more detail.

Review and process the submission

In the admin, open the form's Submissions view. You should see the valid response with a New status. Open its detail view to inspect the submitted values. Viewing a new submission marks it Read automatically.

Use Change status in the detail view when you've dealt with it. FormFlow supports these inbox statuses:

StatusA useful team convention
NewNot yet opened
ReadOpened, awaiting follow-up
ProcessedFollow-up completed
ArchivedKept out of the active work queue
SpamClassified as unwanted

The labels describe inbox state. Marking something Processed does not send an email or prove that another system handled it. An inbox status is also separate from the Business approval-workflow feature.

Return to the list and use Filter by status to find a subset, such as Processed. The list supports pagination and bulk actions including marking selected responses as read or archived. Available controls depend on your admin permissions; a read-only reviewer shouldn't need export or delete access merely to inspect responses.

FormFlow's submission inbox filtered to one Processed response using synthetic contact details.
FormFlow's submission inbox filtered to one Processed response using synthetic contact details.

The inbox filtered to Processed during a local test with synthetic data.

For a small team, agreeing on when to use Processed is often enough to make the inbox useful. Keep that convention explicit before adding downstream notifications or integrations.

Export a filtered set as CSV or JSON

With the relevant status filter selected, open Export and choose Export CSV or Export JSON. The export uses the current status filter; selecting rows for a bulk action does not make the export a selected-rows-only download.

CSV includes the submission ID, submitted time, status and exportable form fields. It uses field labels as column headers. JSON includes a form summary and submission records with their field data. A field configured to be excluded from export is omitted from those exported field values. If there are no matching submissions, CSV can be empty.

Leave Include IP address off unless you have a reason to include that data. Check the downloaded file before handing it to another team, and limit its access as you would any other copy of submitted information.

Opening the CSV in Excel or another spreadsheet application is different from FormFlow's native .xlsx export. The native Excel and PDF options require Pro. The free CSV/JSON route is enough for this tutorial.

If the response doesn't appear

SymptomCheck
Schema returns 404Exact slug, active state and Strapi origin
Submission returns 400Field names, required values and error.details.errors
Request succeeds but no stored row appearsHoneypot value, active status filter and whether you're viewing the same form/environment
Terminal works but browser failsBrowser CORS errors and frontend origin configuration
No Export controlYour admin role's submission export permission
Native Excel/PDF is unavailableIts Pro entitlement; use CSV or JSON for the free workflow

Before connecting a production frontend, repeat the valid and invalid requests against the intended environment with test data. Confirm that one stores a response and the other does not. Then review that response, change its status and inspect the filtered export. Those checks establish the working path from a visitor's submission to your team's inbox.

FormFlow - Visual form builder for Strapi | Product Hunt