Skip to content

Chained Select Fields #1449

Answered by DanRibbens
etmartinkazoo asked this question in Q&A
Nov 18, 2022 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

This is what the filterOptions property is for on the relationship field.
You will return a query on your projects field's filterOptions to only get the projects equal to the organization ID that is selected from your data or siblingData.

https://payloadcms.com/docs/fields/relationship#filtering-relationship-options

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@etmartinkazoo
Comment options

@DanRibbens
Comment options

@etmartinkazoo
Comment options

@DanRibbens
Comment options

@etmartinkazoo
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