Page create dialog with a mutiselect field

Hey,

i try to get a create dialog for a page to work width a multiselect field.

The first steps works just fine. i get the field in the dialog and my query works.

Now i want to use this field as automatic title and slug but i cant get the contnet from this field to be used.

Here is my blueprint

title: Erfassungsbogen

create:
  title: "{{ page.station.split }} - {{ page.date.toDate('d.m.Y') }}"
  fields:
    - station
    - date
  redirect: false
  status: listed

fields:
  date:
    type: date
    default: now
  station:
    type: multiselect
    max: 1
    options:
      type: query
      query: page('stationen').children

Any ideas how to fix this?

Cheers

David

split() creates an array, so this certainly doesn’t make sense

makes sense.

if i delete the split i get the follwing error message

Array to string conversion

I’d try a custom field method that converts an array to a string.

Thanks you.

I will try to find a way to do that. Looks pretty complicated :frowning: