> For the complete documentation index, see [llms.txt](https://help.form.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.form.io/form-building/submissions.md). Agents can also search and read this documentation through its [MCP server](https://help.form.io/~gitbook/mcp).

# Submissions

A **submission** is a saved record of data entered into a form or resource. Each time a form user fills out and submits a form, Form.io creates a submission that records their answers, along with information about the form user and when it was submitted.

Submissions are the data layer of the platform. Submission data can be accessed multiple different ways:

* **Developer Portal**\
  Any form's **Data** tab lists its submissions for review, editing and export.
* **REST API**\
  Submissions can be programmatically accessed with the API. Every submission exists at an endpoint of the following format:\
  `{projectUrl}/{formPath}/submission/{submissionId}`
* **Exports**\
  A submission can be exported as a PDF, JSON, or CSV.

## Submission Data Format

Just as a form definition is aJSON object, a Submission is distinct but related JSON object.

The **form JSON** describes structure: components, labels, validation and logic.  \
The **submission JSON** holds only the values entered.

The two are related by component keys. Each form component's **Property Name** (its `key`) becomes the name of a field inside the submission's `data` object.

For example:

{% columns %}
{% column %}
Form JSON

```json
{
  "components": [
    { "type": "textfield", "key": "firstName", "label": "First Name" },
    { "type": "email", "key": "email", "label": "Email" }
  ]
}
```

{% endcolumn %}

{% column %}
Submission JSON

```json
{
  "data": {
    "firstName": "Bernie",
    "email": "BBrewer@example.com"
  }
}
```

{% endcolumn %}
{% endcolumns %}

While these are correlated, they are not actively connected. If a form field's property name changes, any submissions generated prior to that change will still contain the old name.

### Submission Properties

An example of submission JSON is included below:

```javascript
{
    "_id": "123456789012345678901234",
    "data": {
        "firstName": "Bernie",
        "lastName": "Brewer"
    },
    "metadata": {},
    "state": "submitted",
    "form": "123456789012345678901234",
    "project": "123456789012345678901234",
    "created": "2021-05-24T13:51:43.414Z",
    "modified": "2021-05-24T13:51:43.415Z",
    "owner": "123456789012345678901234",
    "roles": [],
    "access": []
}
```

These properties are described as follows:

| Property | Description                                                                                                                                  |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| \_id     | The MongoDB ID of the submission                                                                                                             |
| data     | The values of the form that were submitted.                                                                                                  |
| metadata | Additional metadata that is added to the submission, such as timezone information.                                                           |
| state    | The state of the submission. "draft" for draft submission, and "submitted" would mean it has been submitted.                                 |
| form     | The Form ID for this submission.                                                                                                             |
| project  | The Project ID where this submission resides.                                                                                                |
| created  | The date this submission was created.                                                                                                        |
| modified | The date this submission was modified.                                                                                                       |
| owner    | The ID of the "user" who created this submission.                                                                                            |
| roles    | If this submission is used as a "user" submission, these are the roles that are added to that user.                                          |
| access   | Access configurations for this submission. This is used when field based resource access is used to establish permissions to the submission. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.form.io/form-building/submissions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
