Skip to content

Is it possible to display only selected relationship parameters? #314

Answered by jmikrut
AkashReddy-playy asked this question in Q&A
Discussion options

You must be logged in to vote

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's validate 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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AkashReddy-playy
Comment options

@jmikrut
Comment options

@AkashReddy-playy
Comment options

Answer selected by zubricks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants