You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Relationship filterOptions do not updated after adding item to join field #11661
I have a collection where you can select a default post based on the posts in a join field in that same collection.
I use the filterOption on the relationship field to only show posts that are in the join field, but this does not update when you add a new item to the join field while editing.
Because this functionality does work with a relationship field instead of a join field, I was asked (on Discord) to provide a working version with a relationship field and the broken version with the join field
Create a join field collection without default value or posts
Step 2:
If it's created, use the "Create new Post" button from the join field and save the new post.
Step 3:
Notice how the default post select still has no possible options
Step 4:
Refresh and now the default post option is there
Remark:
You can do step 2 at any given time, it is not related to how many posts are in the join field already, step 3 will never show the newly added post
Which area(s) are affected? (Select all that apply)
For comparison: TextField triggers useField but JoinField don't.
It would be a nice UX to have the documentForm updated when updating Join table (as we have a way to change data there) or, at least, a good DX to have a way to get these updates to trigger our own.
Activity
AaronClaes commentedon Apr 8, 2025
This issue still happens on the latest version (3.33.0) of payload.
This is becoming a pretty annoying UX problem.
AaronClaes commentedon May 15, 2025
Updated the reproduction to payload version 3.37.0, issue still happens
mariovalney commentedon Oct 19, 2025
+1
Join fields don't trigger field changes when added/removed/updated.
Use case:
I've tried useField and useDocumentEvents without success.
For comparison:
TextField triggers useField but JoinField don't.
It would be a nice UX to have the documentForm updated when updating Join table (as we have a way to change data there) or, at least, a good DX to have a way to get these updates to trigger our own.
JessRynkar commentedon Jan 20, 2026
Hi! Apologies for the long delay in getting a response here, are you still experiencing this on the latest version
v3.72.0?AaronClaes commentedon Jan 20, 2026
Hi @JessRynkar,
I bumped the reproduction to v3.72.0. The issue still happens when following the repro steps.
mikkelwf commentedon Aug 31, 2026
If it any help, i'm using filterOptions on a join (which doesn't work)..
It seems if i wrap the query in a function, then it works.. 🤷