Skip to main content

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​

InputTypeRequiredDefaultWhat it is
FormFileYesThe form (.form.json) made in OneAgentStudio's form designer.
NameStringNoName to refer to the open form by; the form's id when empty.
TitleStringNoWindow title; the form's name when empty.
ValuesDictionaryNoValues to fill in first, by field id (the designer's defaults otherwise).
WaitStringNountil_doneuntil_done: wait until the form is submitted, a button is pressed or it is closed. no: keep it open and go on.
Timeout (seconds)NumberNo900How long to wait for the person.
Check answersBooleanNotrueCheck required fields and limits in the window before it can be submitted.
WidthNumberNo560Window width in pixels.
HeightNumberNo640Window height in pixels.
Always on topBooleanNofalseKeep the form window above other windows while it is open (Windows).

Outputs​

OutputTypeWhat it is
valuesDictionaryThe answers by field id (numbers as Number, checkboxes as true/false).
buttonStringHow the wait ended: submit, the id of the button pressed, closed, or timeout. Empty when not waiting.
submittedBooleanTrue when the person submitted the form.
nameStringName of the open form, for the other form actions.
addressStringLocal address of the form window (this computer only).