I’m working on a project were i have a blueprint for a page template called “Event”. The template is used to create pages that represent an event and its related information.
The “event_location” field allows the user to choose a location from a list of options fetched using a query. The “event_venue” field allows the user to choose one or more venues for the event based on the location selected in the “event_location” field. The options for the “event_venue” field are fetched from a structure field from another page.
The problem is that even if you would “reload on change” (actually rather simple to do in a plugin) or a “reload when button was pressed”, the changes wouldn’t have been saved and only exist in your browser.
Therefore the result of the query would still be the old one, because page.event_location, from Kirby’s point of view, would still be the old one.
A workaround would be to automatically save the page when the event_location changes, I don’t know if that is desirable though. That being said, a minimalist plugin example could look like this: