Is it possible to display only selected relationship parameters? #314
-
We would like to give editors only specific relationship options of a category, is it currently possible to filter relationship data? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @AkashReddy-playy — this is a very good question and potentially a great feature request! Right now, there is nothing that would allow this but we could extend the Relationship field config to accept a Outside of building this directly into Payload, you could accomplish this by building your own UI component for use within the React dashboard. We will keep this in mind. It could be a very nice feature to have. |
Beta Was this translation helpful? Give feedback.
Hey @AkashReddy-playy — this is a very good question and potentially a great feature request!
Right now, there is nothing that would allow this but we could extend the Relationship field config to accept a
where
query constraint that would be used in both the field'svalidate
function as well as its Admin UI component to automatically narrow down relationship field options.Outside of building this directly into Payload, you could accomplish this by building your own UI component for use within the React dashboard. We will keep this in mind. It could be a very nice feature to have.