# Structure field query self (or 'this')

**URL:** <https://forum.getkirby.com/t/structure-field-query-self-or-this/23810>\
**Category:** Questions\
**Tags:** v3\
**Created:** [October 28, 2021, 12:56pm UTC](https://forum.getkirby.com/t/structure-field-query-self-or-this/23810 "2021-10-28T12:56:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukehatfield](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukehatfield/32/386_2.png) [@lukehatfield](https://forum.getkirby.com/u/lukehatfield)\
**Post date:** [October 28, 2021, 12:56pm UTC](https://forum.getkirby.com/t/structure-field-query-self-or-this/23810/1 "2021-10-28T12:56:09Z")

</div>

Is there a way to get a value from same structure field? I’m letting the user select a child page and want them to also be able to select an image from that page. Here’s the blueprint which works, but always grabs the first structure field (`nth(1)`)…

```auto
...
    content:
        type: fields
        fields:
            project:
                type: select
                options: query
                query: site.index.filterBy("intendedTemplate", "in", ["project"]).sortBy("title", "asc")
                help: click Save after selecting a project, then select an image below 
            profileimg:
                type: select
                options: query
                query: page.projects.toStructure.nth(1).project.toPage.images
                help: must click Save after selecting a project above, then choose an image

```

I tried calling a custom route, but still need to pass some value to select the right images.

---

<div class="post-metadata">

**Author:** ![moonwalk](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@moonwalk](https://forum.getkirby.com/u/moonwalk)\
**Post date:** [October 28, 2021, 1:06pm UTC](https://forum.getkirby.com/t/structure-field-query-self-or-this/23810/2 "2021-10-28T13:06:46Z")

</div>

That won’t work because you don’t have access to a reference of the field, and if you had, it wouldn’t help much, because you would need a listener client side that listens to changes in the field and then updates the options.

---

<div class="post-metadata">

**Author:** ![lukehatfield](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukehatfield/32/386_2.png) [@lukehatfield](https://forum.getkirby.com/u/lukehatfield)\
**Post date:** [October 28, 2021, 2:00pm UTC](https://forum.getkirby.com/t/structure-field-query-self-or-this/23810/3 "2021-10-28T14:00:13Z")

</div>

> you don’t have access to a reference of the field

thanks for the confirmation @moonwalk. As for a client side listener, the workaround is the help attribute that tells them to save the page before proceeding.
