No select multiple in backend?

Hi all, i just over a simple issue. I have a custom page type and I want a “select” header element. Its actually working but not correctly saving … in my raw frontmatter i get:

authors: Array
title: Text Beitrag
@extends:
    type: default
    context: blueprints://pages

form:
  fields:
    tabs:
      fields:
        content:
          fields:
            header.authors:
               type: select
               multiple: true
               label: Author(s)
               options:
                  a: A 
                  b: B
                  c: C
                  d: D

Any hints how to resolve this?

Just to be precise: using “multiple:true” does not seem to work properly. Without it, the select element is perfectly working.

Add the validate type:


            header.authors:
              type: select
              multiple: true
              label: Author(s)
              options:
                a: A
                b: B
                c: C
                d: D
              validate:
                type: array

Hi flaviocopes and thanks for your feedback!

Somenhow its not working as expected … now the saved frontmatter looks like this:

authors:
    -
        - a
    -
        - c
    -
        - d

The values are saved as an array array? Is this a bug or a feature? One more little hint how to resolve this issue? Appreciate greatly! Chris