# Live query update in Select fields

**URL:** <https://forum.getkirby.com/t/live-query-update-in-select-fields/17985>\
**Category:** Questions\
**Tags:** v3\
**Created:** [April 23, 2020, 1:14pm UTC](https://forum.getkirby.com/t/live-query-update-in-select-fields/17985 "2020-04-23T13:14:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krisons](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/krisons/32/7391_2.png) [@krisons](https://forum.getkirby.com/u/krisons)\
**Post date:** [April 23, 2020, 1:14pm UTC](https://forum.getkirby.com/t/live-query-update-in-select-fields/17985/1 "2020-04-23T13:14:19Z")

</div>

Greetings!

Let me know if this is even possible:

Let’s say I do have Director as a parent page and Film as a children page.

Then I need third page with just two selects on it:  
1) Director  
2) Films

First field should display all available Directors. This is easy.  
Then second field “Films” should display all films that are childrens for previously selected Director.

So it is like a live select update that depends on previous select. Can I pass a variable of my previous selection to query?

Thank you!

Oleg

---

<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:** [April 23, 2020, 3:08pm UTC](https://forum.getkirby.com/t/live-query-update-in-select-fields/17985/2 "2020-04-23T15:08:57Z")

</div>

No, this won’t work in the query, or only after you save the value of the director select field.

It can somehow be achieved with custom fields, there is a thread somewhere here on the forum.

> [@Programmatically change the content of the file field](https://forum.getkirby.com/t/programmatically-change-the-content-of-the-file-field/16892/38):
>
> I’m really sorry, but after diving a bit deeper I found that it’s not possible to solve your particular case in a non-hackish way with our field plugins at the moment. As mentioned above, the queries in the blueprints are done on the server. Thus, you have to store the result of the gallery field first before the other fields can react to it. This is possible in theory, but it’s not very elegant and has a couple unwanted side effects. Here’s still how you could do this in a custom pages field…
