Skip to content

Multi Combo Dictionary

The MultiComboDictionary allows creating multiple combo boxes based on the sections and keys provided in the input object. The selected values from each combo box can be outputted in two formats: as a JavaScript object or as a URL-encoded query string.


Inputs

  • Dictionary: The input of the MultiComboDictionary should be an object where each key represents a section, and each section contains key-value pairs. The node will automatically create combo boxes for each section based on the keys in the input object.

Outputs

  • Selection: The output of the node will be either a JavaScript object or a URL-encoded query string, depending on the selected output mode. The object will contain the selected values from each combo box, with the section names as keys and the selected values as corresponding values.

Widgets

  • Output Mode: This combo box allows you to select the desired output mode for the node. You can choose between “object” (default) and “querystring”.

Output Modes

Object Mode

  • When the output mode is set to “object”, the node will output a JavaScript object containing the selected values from each combo box. The object will have the section names as keys and the selected values as corresponding values.

Query String Mode

  • When the output mode is set to “querystring”, the node will output a URL-encoded query string representation of the selected values. The query string will be in the format section1=value1§ion2=value2&....
  • In query string mode, the keys and values are URL-encoded to ensure they are valid for use in URLs.

Dynamic Updates

The MultiComboDictionary node automatically updates the combo boxes and the output when the input dictionary is modified. If a new object is received on the “Dictionary” input, the node will replace the existing dictionary, remove any unused combo widgets, and create new combo widgets based on the updated sections and keys.