# Loading Selet fields values dynamically

**URL:** <https://forum.getkirby.com/t/loading-selet-fields-values-dynamically/1627>\
**Category:** Questions\
**Tags:** v2\
**Created:** [July 15, 2015, 11:56pm UTC](https://forum.getkirby.com/t/loading-selet-fields-values-dynamically/1627 "2015-07-15T23:56:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alisaher](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@alisaher](https://forum.getkirby.com/u/alisaher)\
**Post date:** [July 15, 2015, 11:56pm UTC](https://forum.getkirby.com/t/loading-selet-fields-values-dynamically/1627/1 "2015-07-15T23:56:53Z")

</div>

Hello my friends,  
I am a new to Kirby, and I came across a problem in using Select field in the panel.  
How can I load the options dynamically either from a file or dynamically generated in a php template.  
I tried the ‘query’ keyword but I think it loads on pages and files of the current page.

Here is an example from Kirby docs (I do not want the options to be hard-coded like the following example but can be updated by the admin, then loaded here)

```
fields:

```

category:  
label: Category  
type: select  
options:  
design: Design  
architecture: Architecture  
photography: Photography  
3d: 3D  
web: Web

---

<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 16, 2015, 6:14am UTC](https://forum.getkirby.com/t/loading-selet-fields-values-dynamically/1627/2 "2015-07-16T06:14:36Z")

</div>

Well, unfortunately, you cannot select a field on a specific page in the query options, all available options are described here:  
[http://getkirby.com/docs/cheatsheet/panel-fields/select](http://getkirby.com/docs/cheatsheet/panel-fields/select)

And in the changelog:  
[http://getkirby.com/changelog/kirby-2-1-0#core](http://getkirby.com/changelog/kirby-2-1-0#core)

As you can see, you can use an URL to fetch a json encoded file, but I guess, that might be too complicated.

Another option would be to create a custom field that fetches the values e.g. from a field in the site variables. [Address pages in custom fields](http://forum.getkirby.com/t/address-pages-in-custom-fields/701?u=texnixe)

---

<div class="post-metadata">

**Author:** ![alisaher](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@alisaher](https://forum.getkirby.com/u/alisaher)\
**Post date:** [July 16, 2015, 9:50am UTC](https://forum.getkirby.com/t/loading-selet-fields-values-dynamically/1627/3 "2015-07-16T09:50:08Z")

</div>

Thanks a lot. I think a custom field would solve my problem. I will try to create one.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:17pm UTC](https://forum.getkirby.com/t/loading-selet-fields-values-dynamically/1627/4 "2025-02-06T17:17:04Z")

</div>


