Filtering a multi selct list
-
I have a project I have been working on, and I have encountered a bit of frustration. Unfortunately, I have never been good at learning programing languages, so I am stuck. Sorry if this is confusing, or if I get terminology wrong.
I have two pods on this project so far. One labeled “Building,” and one labeled “Events.” There is a relational field in “Building” (named “events”,) that links to the event pod, using the building name as the common field. The field in both tables is named “official_name.”
When you set up a new building, you hit the events field, and you are presented with a multi-select field for which events you want to display (display works already, I figured out that much!) Unfortunately, the multi select shows ALL event fields, which will soon number in the thousands, of which I will want ten or twelve.
I get the feeling that in the “building” pod, on the set up for the “event” field, I should be able to filter the multi select list down. In the field’ “Advanced Options,” there is an option labeled “Customized WHERE.” I get the impression that I should be able to filter the multi-selct list to only show events that have the same official name as the building I am currently editing. Something like:
where event.official.name = building.official_name.
Only, try as I might, I can’t seem to find a version of the code pods understands. I have tried all kinds of variations, but the “Building” pod fails to load when editing a building because my addition is not recognized. Can someone point me in a better direction (Or just straight up tell me what code I need?)
Thanks in advance.
- The topic ‘Filtering a multi selct list’ is closed to new replies.