# Query subpages of selected page inside the same page

**URL:** <https://forum.getkirby.com/t/query-subpages-of-selected-page-inside-the-same-page/26976>\
**Category:** Questions\
**Tags:** v3\
**Created:** [November 8, 2022, 3:48pm UTC](https://forum.getkirby.com/t/query-subpages-of-selected-page-inside-the-same-page/26976 "2022-11-08T15:48:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [November 8, 2022, 4:35pm UTC](https://forum.getkirby.com/t/query-subpages-of-selected-page-inside-the-same-page/26976/3 "2022-11-08T16:35:44Z")

</div>

Unfortunately, this is not possible on the fly, because your second field knows nothing of the first before the page is saved.

You would need a custom solution here, i.e. a field that listens to changing values of the first field. Or maybe a combination of two fields in one.

See also: [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)

---

_[View the full topic](https://forum.getkirby.com/t/query-subpages-of-selected-page-inside-the-same-page/26976)._
