It would be nice to add filters to these fields when adding reference fields to schemas. While showing the data in the panel, we sometimes need to filter and show them.
it looks like we have a minor UI issue to do this because we can give multiple schemas as reference.
I should actually be able to add filters for each schema mapped. It may be necessary to make minor changes to the interface for this. Since I didn’t know how to reflect this in the UI, it seemed as if the filter would be valid for all schemes.
I can only imagine this at the UI level, so filtering at the point of adding the reference. Making it part of validation would add complexity around what to do when:
The filter changes so some references already saved no longer match that filter
The value of a field being filtered on changes so that it no longer matches that filter
Assuming those operations aren’t blocked it would leave the content in an invalid state that would come up when you next try to edit it for example.