I continue my journey into filtering a photo gallery based on a selection of tags in a dropdown menu. I got it to work using this code when the "tags" field in dataset1 is a TEXT field.
However, I have made the "tags" field into a multiple item reference field type, and now the filter doesn't work. Essentially, I want it to take the value of the dropdown down, and see if that value is contained within an entry's multiple item reference field "tags"
So here is what the data looks like:
So on the site, when a user picks "Still Life" from the the dropdown, the gallery would be filtered to only photos that have "Still Life" in the Tags field. In this case with only two photos, only the photo of the skull would be displayed.
Any thoughts? You all are awesome, by the way. This forum is incredibly helpful.