Skip to main content
Community site session details

Community site session details

Session Id : CMX/qmaemlSw9Kd4bfhMaW
Power Apps - Building Power Apps
Answered

Gallery filter selections reset when navigating to form view/switching screens

Like (0) ShareShare
ReportReport
Posted on 20 Sep 2020 18:53:42 by 15,665 Super User 2024 Season 1

Hi,

 

I have a few dropdown filters on a Gallery. 

 

Upon selecting some dropdown options in the Gallery, then navigating to the Form screen, and then navigating back to the Gallery screen, the dropdown filter selections are reset to default values.

 

Is there any way to pass the filter selections onto a global variable or any other means, so that when I navigate back to the Gallery from the Form screen, the dropdown selections do not change?

 

Best regards,

AmiK

 

Categories:
  • Rodolfo1840 Profile Picture
    155 on 12 Nov 2021 at 18:31:35
    Re: Gallery filter selections reset when navigating to form view/switching screens

    Hello,

     

    In my case it worked. I set the variable On Change property and I used the variable as a Filter in the Gallery items

  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on 22 Sep 2020 at 19:49:58
    Re: Gallery filter selections reset when navigating to form view/switching screens

    I found a post with the same issue and it turns out the solution was not working because I was already using a ClearCollect and Collect function on the dropdown control. The steps provided in the below thread resolved that issue.

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Gallery-filter-selections-reset-when-navigating-to-form-view/m-p/693981#M222031

  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on 20 Sep 2020 at 22:07:28
    Re: Gallery filter selections reset when navigating to form view/switching screens

    Thank you for the quick response @mdevaney . Unfortunately, when navigating back to the Gallery from the Form screen, the dropdown still resets back to the first item in the drop down menu rather than the selected item.

     

    To check if the function is working correctly, I added a Label into the Form screen and referenced it back to the dropdown value in the Gallery. The Label control correctly returned the selected filter value. The value is just not appearing correctly when navigating back to the Gallery.

     

    Any ideas?

  • Verified answer
    mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 20 Sep 2020 at 19:06:45
    Re: Gallery filter selections reset when navigating to form view/switching screens

    @Amik

    You could put some code like this in the OnChange property of the dropdown to store the selection in a variable.

    Set(varFilterColumn1, Dropdown_Column1.Selected.Value)

     

    Then put the variable in the Default property of the dropdown.  Now the value will be retained now matter if the selection is lost.

    varFilterColumn1

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1