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 / Reset in gallery controls
Power Apps
Unanswered

Reset in gallery controls

(1) ShareShare
ReportReport
Posted on by 237

 

Hello,

 

    How to reset gallery controls after submit the data.

I have different components in gallery like text input,datepicker,dropdown,text labels.

After submit the data gallery components  reset .how can achieve please help.

 

Thanks in advance.....!!!!

 

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Powerappsuser11 

    Try like this:

    1. Create a context variable: At the app's OnStart or the screen's OnVisible property, initialize a context variable that you can use to trigger the reset.

    UpdateContext({varResetGallery: false})

    2. Set the Reset Property of Controls: Inside the gallery, set the Reset property of the text input, date picker, dropdown, etc., to the context variable varResetGallery.

    Here's an example for the Reset property of a text input control that is inside the Gallery:

    varResetGallery

    3. Submit the Data: Wherever you're handling the submission of the data (for example, a button's OnSelect property), after performing the submit action, you should update the varResetGallery variable to true and then back to false to trigger the reset. Here's an example:

    SubmitForm(YourForm); // Replace with your submit action
    UpdateContext({varResetGallery: true});
    UpdateContext({varResetGallery: false})

    4. Make Sure that Other Controls Respond Appropriately: Depending on how your gallery is configured, you may want to take additional actions to ensure that labels and other non-input controls reflect the reset state.

    You can use the same context variable or additional logic to manage these.

    5. Test Thoroughly: As this approach relies on triggering the controls to reset, you should thoroughly test with all the types of controls you have in the gallery to ensure that they are resetting as expected

     

    See if it helps @Powerappsuser11

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Powerappsuser11 ,

     

    You can use Refresh function to refresh the data source of Gallery, which is in Items property of the Gallery.

     

    Best regards,

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Powerappsuser11 

    I recommend go with @v-jefferni approach.

    If possible, instead of resetting controls inside, you should just Refresh(DataSource) instead from an appropriate place.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,070

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 608

Last 30 days Overall leaderboard