Name

UI::CollectUserInput — Collects the content of all input widgets in a dialog or in a container

Synopsis

list<map<string, CollectUserInput ( term  ID);

Parameters

term ID

(optional)

Return

list<map<string,

any>>

Description

This function returns a list of maps describing the content of all input widgets in the current dialog (or in the widget with the specified ID, if any is given), such as TextEntry, ComboBox, SelectionBox, ... widgets (but not Labels, RichText, etc., that don't accept user input).

This function returns a list with a map for each input widget:

$[ "ID" : (widget ID) "Value" : (current value of this widget, depending on "Property") "Property" : (what property this is, `Value, `CurrentItem or whatever)

"WidgetClass" : (one of "TextEntry", "ComboBox", "SelectionBox", ...) "DebugLabel : ((translated) label of this widget, possibly shortened: "Name", ...) ]

Usage

  list<map<string, any>> fieldContents = CollectUserInput();