ui_objects

ui_objects serve two purposes: inputting and outputting data. The vendors can use it to request additional input data from the customer (e.g: shoe size, screensize). The vendor is able to mark a data input as 'forced', this should show an error to the buyer detailing that they did not input a value. They can also use an object of the output type to display data in for example a table.

Output types

TYPE ID TYPE NAME
0x03 TABLE

Input types

TYPE ID TYPE NAME
0x01 CHECKBOX
0x02 DROPDOWN

Unique IDs

All input types have a field 'id' which is a UNIQUE identifier. The following example shows a faulty configuration.

    "ui_objects": [
      {
        "type": "DROPDOWN",
        "id": "colour",
          ...
      },
      {
        "type": "CHECKBOX",
        "id": "colour", // WRONG! IDs must be unique.
          ...
      }
    ]

note: comments // are invalid JSON, do not include these in a real listing.