I have a collection of resources. My goal is to have a Search page where the user can select from four lists of different types of attributes that each resource has. I am attempting to create drop down menus for each of these four different types of attributes. The user can select on item from each of the four drop down menus which will have a list of the specific types of attributes attributes.When the user clicks the Search button, the results of the search will be displayed on a Results page.
Each resource is a row in my main collection. I have four different fields that contain the different types of attributes for the resource. These are reference fields. There is a collection (description collection) for each of the four attribute with a field for the ID number for the different specific types of that attribute and a field which describes the specific type of attribute. There are four more collections with an ID field for the resource Id from the main collection and a field for the specific attribute from the description collection for that attribute. This last field is a reference field to the description collection.
So I should have all the data properly linked up so that when the wixData.query is run on the main collection, only the items which match the selections of the user for the four types of the attributes will be presented as the results. Unfortunately I cannot find any code to take the put the values from the selections made in the drop down menus into variables which can be used in the query. I can find lots of examples for adding data from drop down menus to a collection, and examples of drop down menus which go to other features, etc on the website, but none which will present the values from the drop down menus in a manner where I can use them in the query.
Thanks for any assistance you can provide that will enable me to complete this project. I’ve attached a copy of my collection layout.