Display form
Show a form from the form designer to the person at the runner. Wait until they submit it, press a button or close it; or keep it open and go on, reacting to it with Wait for form event.
Command in the Interactive forms toolkit · id ooa.forms/display · 10 inputs (1 required), 5 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Form | File | Yes | The form (.form.json) made in OneAgentStudio's form designer. | |
| Name | String | No | Name to refer to the open form by; the form's id when empty. | |
| Title | String | No | Window title; the form's name when empty. | |
| Values | Dictionary | No | Values to fill in first, by field id (the designer's defaults otherwise). | |
| Wait | String | No | until_done | until_done: wait until the form is submitted, a button is pressed or it is closed. no: keep it open and go on. |
| Timeout (seconds) | Number | No | 900 | How long to wait for the person. |
| Check answers | Boolean | No | true | Check required fields and limits in the window before it can be submitted. |
| Width | Number | No | 560 | Window width in pixels. |
| Height | Number | No | 640 | Window height in pixels. |
| Always on top | Boolean | No | false | Keep the form window above other windows while it is open (Windows). |
Outputs
| Output | Type | What it is |
|---|---|---|
| values | Dictionary | The answers by field id (numbers as Number, checkboxes as true/false). |
| button | String | How the wait ended: submit, the id of the button pressed, closed, or timeout. Empty when not waiting. |
| submitted | Boolean | True when the person submitted the form. |
| name | String | Name of the open form, for the other form actions. |
| address | String | Local address of the form window (this computer only). |