Hi Community,
Currently I have a photo library gallery that I can type into a search filter and then further filter by options on a combo box. I am trying to make this look prettier and show the filter icon + filled filter icon next to combo box. How can I set the Visible properties so that if no selections are made on combo box, filter icon stays unfilled, but when any selection is made on the combo box, the unfilled filter icon goes away and the filled filter icon replaces it and vice versa.
Similarly, I'd also like there to be a button that can clear all filters from the combo box.
Could anyone please assist?
Thank you,
Brandon
Hi Ethan,
Thank you for the quick reply. I cannot seem to understand the syntax side of Power Apps. Could you please explain what you are doing there?
I'm not sure what to substitute for TextInput1. Basically for the combo box, if there is a selection, the filter goes from Icon.FilterFlat to Icon.FilterflatFilled. If filter removed, Icon.FilterFlatFilled changes back to Icon.FilterFlat . However, I only want this to happen for the filter icon itself and has nothing to do with the search bar that I have. Because it is a multi-level search. First we search and then can filter down additional info with combo box.
Gallery = galList
Form = formList
Combobox = ComboBox1
Search Bar = txtSearch
Thank you,
Brandon
Hi @brandonluxe ,
You can try the following syntax:
Icon property of Icon
If(
IsBlank(TextInput1.Text) &&
IsEmpty(combobox.SelectedItems)
//Add other fields you want
,
Icon.Filter,
Icon.FilterFlatFilled
)
Hope this helps
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2