# Query files from different page that is referenced in another field

**URL:** <https://forum.getkirby.com/t/query-files-from-different-page-that-is-referenced-in-another-field/26052>\
**Category:** Questions\
**Created:** [July 23, 2022, 9:04am UTC](https://forum.getkirby.com/t/query-files-from-different-page-that-is-referenced-in-another-field/26052 "2022-07-23T09:04:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [July 23, 2022, 9:13am UTC](https://forum.getkirby.com/t/query-files-from-different-page-that-is-referenced-in-another-field/26052/2 "2022-07-23T09:13:06Z")

</div>

> [@till\_k](#):
>
> Now for the second field I can’t figure out the query, or if this is even possible. Any ideas?

No, that’s not possible out of the box. For a second field to query the value of the first it would be necessary that the first field is saved first.

To make this work, you would need a custom field that listens to changes of the first field.

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-files-from-different-page-that-is-referenced-in-another-field/26052)._
