# A form is submitted

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

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

## De un vistazo

| Propiedad | Valor |
| --- | --- |
| **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`.

## Salidas

Un nodo posterior se refiere a una salida como `{nodeId.field}` en un texto, o `nodeId.field` en una condición.

| Salida | Tipo |
| --- | --- |
| `rowId` | string |
| `submittedAt` | date |
| `formName` | string |
| `lang` | string |

More outputs are declared in the setting `fields`.

## Ajustes

Se definen bajo `config:` en el disparador del flujo.

| Ajuste | Tipo | Valor por defecto | Descripción |
| --- | --- | --- | --- |
| `form` (obligatorio) | 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` (obligatorio) | string |  | (minLength 1) |
| `fields[].type` | string |  | (one of string, number, boolean, date, money) |

El JSON Schema completo de estos ajustes: [form-submitted.schema.json](https://docs.go-lumen.ai/schemas/triggers/form-submitted.schema.json).
