Skip to content

Entries Field: Selectable entries based on value of another field? #12676

Closed Answered by brandonkelly
JerikoOne asked this question in Q&A
Discussion options

You must be logged in to vote

This has come up a couple times in our Discord server, and it’s technically possible to pull off with a custom condition rule, but it’s a little hacky. So I just went ahead and made it possible in core, for the upcoming Craft 4.4 release (PR’d at #12679).

So once 4.4 is out, you will be able to add a “Related To” condition rule to your “Room” field’s Selectable Entries Condition setting, set to the following template:

{event.one().location.one().id}

(So you’re saying that only Room entries that are related to the same location as the session’s event.)

CleanShot.2023-02-14.at.16.20.05.mp4

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@JerikoOne
Comment options

@brandonkelly
Comment options

Answer selected by brandonkelly
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants