Select option default

Hi,
why doesn’t this Select field set my first option as default?

This field is grafted into a repeater

{
  "type": "set",
  "label": "Text",
  "options": {
    "fields": [
      {
        "type": "select",
        "name": "style",
        "label": "Layout",
        "options": {
          "options": {
            "singlecol": "Single Column",
            "multicol": "Multi Column"
          },
          "default": "singlecol"
        }
      },
      {
        "type": "wysiwyg",
        "name": "content",
        "label": "Text",
        "options": {
          "editor": {
            "toolbar": "undo redo | bold italic underline link | aligncenter",
            "formats": {
              "underline": {
                "inline": "u",
                "exact": true
              }
            },
            "default_link_target": "_blank",
            "entity_encoding": "raw",
            "forced_root_block": "",
            "menubar": false
          }
        }
      }

Thanks

default property support for nested fields was added in the current next branch, https://github.com/agentejo/cockpit/tree/next

1 Like