Validate form
Check the answers (required fields, number limits, email addresses, choices) and, if wanted, show the problems next to the fields.
Command in the Interactive forms toolkit · id ooa.forms/validate · 2 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Name | String | Yes | Name of the open form (by default the form's id, as given when it was displayed). | |
| Show messages | Boolean | No | true | Show the problems on the form. |
Outputs
| Output | Type | What it is |
|---|---|---|
| valid | Boolean | True when there are no problems. |
| errors | Dictionary | Problems by field id, e.g. {"email": "Required"}. |