Skip to main content

Module forms

Module forms 

Source
Expand description

Parsers for the form-related wire replies (commodity and form options, loaded and carried values).

Structs§

FormOption
One form-options entry: the entity id, its label and its bare-name alias.

Functions§

commodity_fill
The commodity to fill after account is picked: its only commodity.
copy_carried
Copies the nested rows fields form has from from into to, keeping a present empty field present and a missing one missing, then drops the rows whose parent row is not in to.
map_references
values with every non-empty select value replaced by its option id, over one form-options fetch per source; the session sees no submit on failure.
map_values
values with every non-empty select value replaced by its id in fetched; errors name a field as {flag_prefix}{key}.
parse_form_options
Parse a form-options wire reply into its options.
parse_loaded_reply
Parse the wire reply of a load-form call for form into FormValues.
parse_option_list
Parse the unwrapped list text of a form-options reply.
parse_suggestions
Parse a form-options suggestion reply: a list of strings.
resolve
The id of the option input names: an own id, an exact label, or a unique alias; | stands for ¦, and commodities compare case-insensitively.
sources_used
The option sources values has a select value in.

Type Aliases§

Fetched
The form-options fetched per source.