web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery empty after Re...
Power Apps
Answered

Gallery empty after Reset(RadioButton)

(0) ShareShare
ReportReport
Posted on by 157

Hello 

 

I am building a tablet app with source data from a sharepoint list, with a gallery that should be filtered by text search and radio button selection.

 

I have inserted a single text input "searchTextBox"

 

I have inserted a single radio control "radType",

 

Choices(register.Type)

 

where Type a column in the SP list

 

I have a single gallery connected to the sharepoint list filtered by text search and radio button selection

 

Filter('register';StartsWith(Title;searchTextBox.Text) 
&& (Type.Value = radioType.Selected.Value || radioType.Selected.Value =Blank()))

 

 

I have an Icon to clear the filters 

 

 

Reset(searchTextBox);;Reset(radType)

 

 

If I play the app the text and radio button filters work as expected.

 

However as soon as I reset the filters the gallery goes blank. I have to then close the browser and restart the powerapps interface to see gallery data again.

 

The problem is with the radio buttons: If I remove the radio buttons entirely and only filter the gallery with the textBox text and then reset the text box the gallery shows all items again. 

 

Can anyone please help me to resolve this very frustrating problem

 

edit: I have been following this tutorial https://www.youtube.com/watch?v=bujH2gzTduQ from @RezaDorrani

 

 

Categories:
I have the same question (0)
  • Bilakanti Profile Picture
    1,226 on at

    @td1979  Use the below code.

    Filter('register';StartsWith(Title;searchTextBox.Text) 
    && IsBlank(radioType.Selected.Value)|| Type.Value = radioType.Selected.Value)
  • td1979 Profile Picture
    157 on at

    Hi @Bilakanti 

     

    Your code works great until I hit the clear filters button, I get the same thing - a blank gallery (until I reload the powersapps environment)

     

    my reset button is: 

     

    Reset(TextSearchBox);;Reset(radioType)

     

     

    Im in france so chaining is ;; 

     

    I am sure the problem is with 

     

    Reset(radioType)

     

     

    but I have no idea why

     

  • Bilakanti Profile Picture
    1,226 on at

    @td1979 The code which I provided should work for sure, as i am checking if the radio control is blank, then show all records, else show the radio button selected data.

  • td1979 Profile Picture
    157 on at

    @Bilakanti  your code 100% works

     

    until I call Reset(textBox) and Reset(RadioButton)

     

    I dont think the problem is your code or my orignal code, but something is going wrong when resetting

     

    its driving me crazy

  • Bilakanti Profile Picture
    1,226 on at

    @td1979 - can you try deleting the control and re-adding the radio button control once again.

  • td1979 Profile Picture
    157 on at

    Thanks again for your help;

     

    I have tried

    -readding the control

    - rebuilt a new list / rebuilt the app 

     

    I still get the same behavior - Reset(textBox);; Reset(radioButton) result in a blank gallery. I have found if I then type in the text box the gallery gets populated again 

     

    I have uploaded a Powerpoint screen recording to better demonstrate the behavior 

     

    this is very frustrating!

     

     

     

     

     
  • Verified answer
    td1979 Profile Picture
    157 on at

    So I resolved this in the end and of course it was simple and (with hindsight) blindingly obvious. I hope this is useful for anyone that gets stuck with this:  

     

    I changed my gallery items formula from 

    Filter('register';StartsWith(Title;searchTextBox.Text) 
    && IsBlank(radioType.Selected.Value)|| Type.Value = radioType.Selected.Value)

     

    to this (checking if the text box is blank

    Filter('register';
    (isBlank(searchBoxText) || StartsWith(Title;searchTextBox.Text) 
    && (IsBlank(radioType.Selected.Value)|| Type.Value = radioType.Selected.Value))

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard