The dropdown contains all the column headers of my DataSource. I was able to display them all by creating a sharepoint list and manually adding the column headers there.
My goal: is to be able to search by typing in the search box and then choose from the dropdown. I set a variable on the search button OnSelect property Set(varSource,true) so that I can give an If statement to my gallery items
My current gallery items formula that is working(hard coded for testing):
If ( varSearch, Search(DataSource,txtSearch.Text, "Category"), DataSource) -> this formula currently works and able to search for "Category" column, knowing that this works probably I might have something wrong with my formula that is referencing the text value of the dropdown.
however when I change the gallery items formula to
if (varSearch, Search(DataSource, txtSearch.Text, dropdown.SelectedText.Value),DataSource)
it gets a formula error.
Questions:
1)How can I search based on a dropdown value?
2)Where should I change the value of varSearch to false, so that whenever I want to search for another I have to click the search button. Ive tried this formula in my gallery items properties
if (varSearch, Search(DataSource, txtSearch.Text, dropdown.SelectedText.Value),DataSource); Set(varSource,false) but I also get an error
