Querying pages in a select field

I’m not sure what I’m doing wrong and i have tried to find solutions on the forum with no luck.

I am trying to list the available pages in a select field but the output i get is weird. Any ideas?

page:
  label: Link
  type: select
  options:
    type: query
    query: site.children.listed
  when:
    destination: internal

Which Kirby version?

3.7.5

You are using the new query syntax which was introduced in 3.8, you have to use the old syntax for your version:

page:
  label: Link
  type: select
  options: query
    query: site.children.listed
  when:
    destination: internal

Thanks! I will update my version :slight_smile: