# Select a subpage

**URL:** <https://forum.getkirby.com/t/select-a-subpage/20726>\
**Category:** Questions\
**Tags:** v3\
**Created:** [January 9, 2021, 5:40pm UTC](https://forum.getkirby.com/t/select-a-subpage/20726 "2021-01-09T17:40:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![springfield](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@springfield](https://forum.getkirby.com/u/springfield)\
**Post date:** [January 9, 2021, 5:40pm UTC](https://forum.getkirby.com/t/select-a-subpage/20726/1 "2021-01-09T17:40:21Z")

</div>

Hello and happy new year !

I come back to Kirby recent recently. I use demokit with agency party for create my portfolio of personal photo.

For first select “Villes”, I use:

```auto
# Ville
          ville:
            label: Ville
            type: pages
            query: kirby.page("agency/villes").childrenAndDrafts
            subpages: true
            multiple: false
            image:
              back: white
            width: 1/2
```

I want select a subpage [Agency / Villes / Lieux]. “Lieux” is a group of subpage in “Villes”. What YAML code do you use ? I think this that maybe not return.

```auto
# Lieu
          lieu:
            label: Lieu
            type: pages
            query: kirby.page("agency/villes/lieux").childrenAndDrafts
            subpages: true
            multiple: true
            image:
              back: white
            width: 1/2
```

I would have wanted that if “Ville” = “Paris” then choose a subpage (example: Tour Eiffel / Madeleine / Montmartre). How can I do?

Thanks.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 9, 2021, 5:57pm UTC](https://forum.getkirby.com/t/select-a-subpage/20726/2 "2021-01-09T17:57:56Z")

</div>

That’s not possible, at least not out of the box.

While you could query the page chosen in the `ville` field, the options in the `lieu` field will only be updated after saving.

So you would need a custom field that listens to the first field changing.

See also this post: [Programmatically change the content of the file field - #38 by bastianallgeier](https://forum.getkirby.com/t/programmatically-change-the-content-of-the-file-field/16892/38)

However, I wonder if when you don’t use a query in the blueprint, but do the querying in a second field directly in vue, this could be solved without saving first… 🤔
