Querying data in select from site blueprint

Hi all - I have a structure field on my site’s blueprint (so on main page of panel) that I want to show as options in a select form in a seperate blueprint. For some reason I can’t get it to work when it’s querying from the site blueprint and wondered if anyone had ideas as to why? Thanks!

Site blueprint

sections:
  areas:
    type: fields
    fields:
      areaList:
        label: Project Areas
        type: structure
        fields:
          area:
            label: Area Name
            type: text

Project blueprint:

location:
label: Area
type: select
options: query
query:
  fetch: site.find('home').areaList.toStructure
  text: “{{ structureItem.text }}”
  value: “{{ structureItem.key }}”

If the structured field is on site.yml, try site.areaList.toStructure.

Thanks Pedro. If I try that then I get the correct amount of select options back, but they’re all empty (so just ).

It seems you only have one field in the structured field, you need to update the text and value options on the select field:

query:
  fetch: site.areaList.toStructure
  text: "{{ structureItem.area }}"
  value: "{{ structureItem.area }}"

Oh woops - thanks so much man!