Skip to main content

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​

InputTypeRequiredDefaultWhat it is
NameStringYesName of the open form (by default the form's id, as given when it was displayed).
Show messagesBooleanNotrueShow the problems on the form.

Outputs​

OutputTypeWhat it is
validBooleanTrue when there are no problems.
errorsDictionaryProblems by field id, e.g. {"email": "Required"}.