Hello. Is it possible to populate options of a select field with values from a structure field? Furthermore, the structure field is on a separate page so that adds another level of complexity.
Any help would be greatly appreciated.
Hello. Is it possible to populate options of a select field with values from a structure field? Furthermore, the structure field is on a separate page so that adds another level of complexity.
Any help would be greatly appreciated.
That’s currently not supported. The next Kirby version will have an option to use values from a tags field, but structure adds another layer of complexity because every item has multiple fields again etc.
You could however create your own version of the select field and place it in site/fields
. With your own fields, you can completely control the options and logic.
Check out this post for a custom field that queries a structure field.
Thanks. I’ll research this further based on your replies.