Hi there,
I would like to dynamically generate options of a multi-select field with data from another page (“apropos”) stored in a structure. This should be very simple. But after a number of unsuccessful attempts, I’m out of ideas what the problem might be here…
With a multiselect, i’ve got this error message in my panel : “this.state.map is not a function”. With a select, I’ve got the correct number of options, but rows are empty.
My query :
prod:
label: Production
type: multiselect
options:
type: query
query: site.find('apropos').equipe.toStructure
value: "{{ item.nom }}"
the structure field in page 'apropos" :
- width: 1/2
fields:
equipe:
label: Équipe
type: structure
columns:
nom: true
poste: true
fields:
nom:
type: text
width: 1/2
poste:
type: text
width: 1/2
mail:
type: email
width: 1/2
tel:
label: Téléphone
type: tel
width: 1/2
bio:
type: textarea
width: 1/1
portrait:
type: files
query: page.images.template('image')
uploads:
template: image
max: 1
layout: cards
Any idea what could go wrong?
Thank you for your help.