I have a gallery which displays the contents of a SP online Document Library ("Documents"). I have a dropdown box ("DropDown1") which allows selection of a department and this dropdown is populated from a Collection ("Departments"). I have a TextSearchBox ("TextSearchBox1").
I want to display all items in the gallery until:
A user inputs text into TextSearchBox1 - this should then search the "Name" Column of "Documents"
A user makes a selection from "DropDown1" which will filter against the "Department" column of "Documents"
These two actions need to be independant of each other, that is to say that a search will result in returns regardless of whether or not the dropdown has had a selection made and the filter should return results whether or not the search box has text in it.