Is there a way to exclude some of the options in relations field?
Let's say I have 2 collection types:
1. Events
2. Locations
Event fields:
- name (string)
- type (select)
- available (bool)
Location fields:
- name (string)
- events (relation)
Location collection has a field called "events", which is of relations type (many to one) = I can add numerous events to a location. The issue is that some of the events are no longer available and I don't want to show these events in administration (so none will add no longer available event to a location).
Can I hook to some rendering function before the relations field is displayed co I can exclude events that are no longer available?
