I've been trying to figure this out for a while now, I believe that this should be easy but I still can't solve it. I'm a beginner at this. -_-
I have 3 Content types
I have a List of Venue that will be used as reference for the Food. So, The Food content type has an entity reference field -> field_venue
The Food will only be available to the venue it referenced.
The Package Content type has the entity reference Venue and Food. It shows the venue and the food available.
I use Entity Reference View Widget for the Entity reference on Package Content Type. The Venue is working well.
My Problem is the Food.
I need an Entity Reference View Widget (VIEW) that shows the available food for the Venue.
On the form, the user will only be able to answer the Venue field. After that the form will be saved and the entity reference field for Food will display on the page, that is the place where the user will answer that field.
On the entity reference view widget Food, I have the following:
Filter Criteria: Content Type: Food
Relationship: Entity Reference: Referenced Entity (field_venue) marked as required
The problem is that the view shows all the food even if the chosen venue is not available for that food. I don't know where to put that condition. Either on contextual filter or Filter Criteria. I'm not sure. I just need the view to get the Answer of the Venue from that same form/node so that the Food will filter automatically.
Is there anyone that will be able to help?
Thank you very much!!!