Skip to main content

Wait for form event

Wait until the person presses a button, changes a field, submits or closes the open form; then react to it (e.g. in an If on the event and element).

Command in the Interactive forms toolkit · id ooa.forms/wait_for_event · 4 inputs (1 required), 5 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
NameStringYesName of the open form (by default the form's id, as given when it was displayed).
EventsStringNoanyWhich events to wait for (closing the form always ends the wait).
Timeout (seconds)NumberNo300How long to wait.
Fail on timeoutBooleanNofalseStop with FORMS.TIMEOUT when nothing happened in time (otherwise timed_out is true).

Outputs​

OutputTypeWhat it is
eventStringbutton, change, submit, close or timeout.
elementStringId of the button pressed or the field changed; empty for submit, close and timeout.
valueAnyThe changed field's new value.
valuesDictionaryAll answers by field id.
timed_outBooleanTrue when nothing happened in time.