# A form is submitted

> Starts when someone fills in one of your forms, with their answers.

Source: https://docs.go-lumen.ai/reference/triggers/form-submitted

## At a glance

| Property | Value |
| --- | --- |
| **Trigger name** | `form-submitted` |
| **Resource** | ClusterTrigger (`lumen.ai/v1alpha1`) |
| **Source** | event |
| **Needs a connection** | no |
| **Produces** | `fields` |
| **Emits** | item |
| **Installation must provide** | nothing |

The trigger goes under `spec.triggers` of a Flow. Its outputs are referenced as `<triggerId>.<field>`. A trigger can also carry a `when` condition ("Start only when") and `disabled: true`.

## Outputs

A later node references an output as `{nodeId.field}` in text, or `nodeId.field` in a condition.

| Output | Type |
| --- | --- |
| `rowId` | string |
| `submittedAt` | date |
| `formName` | string |
| `lang` | string |

More outputs are declared in the setting `fields`.

## Settings

Set under `config:` on the flow trigger.

| Setting | Type | Default | Description |
| --- | --- | --- | --- |
| `form` (required) | string |  | Name of the form whose submissions start the flow. (minLength 1) |
| `fields` | list of object |  | Fields are the form's questions, written by the editor when a form is picked. (maxItems 100) |
| `fields[].name` (required) | string |  | (minLength 1) |
| `fields[].type` | string |  | (one of string, number, boolean, date, money) |

The full JSON Schema of these settings: [form-submitted.schema.json](https://docs.go-lumen.ai/schemas/triggers/form-submitted.schema.json).
