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 / Forms and Galleries ar...
Power Apps
Answered

Forms and Galleries are resetting after Patch, SubmitForm

(0) ShareShare
ReportReport
Posted on by 6

After the update to version PowerApps 3.18114.25, my forms/galleries are resetting after the first patch/submitform.

The datacard values are set to reset: false.

 

For fields in galleries, the patch to the first list goes through with the updated text but the second list is patched in with the default value for that field of the gallery.

 

Any help is appreciated.

Categories:
  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @srubio24,

     

    We will discuss your issue separately.

     

    Firstly, about the SubmitForm function. After you submit the form, will the app navigate to another screen or stay with the same screen? You could check about this in the OnSuccess property of the Form control. By resetting in this part, did you mean that the Form control would show the record that just submitted with newly updated data?

     

    Secondly, about the Patch, I guess that you are use a button control to patch the record from within the screen that holds the Gallery control. If so, did you mean that after selecting the button, the Gallery control would refresh the data and show with the newest version? 

     

    Regards,

    Mona

     

     

  • Marcelo_br Profile Picture
    10 on at

    Hello @v-monli-msft,

     

    I'm going through the issue you described in the second part of your post but I can't find a way around it.

    (I have a gallery reading filtered data and after I patch the records sucessfuly through a button on select function, the gallery resets itselft and displays data from record 1 and no longer the filtered data.)

     

    Is there a solution for this ?

  • srubio24 Profile Picture
    6 on at

    This seems to have come back as soon as version 3.19012.19 came out 2 hours ago. 

  • GordonMcCulloch Profile Picture
    33 on at

    Hello,

     

    I get this exact same issue.

     

    This post says its solved but does not actually seem to show a solution?

  • GordonMcCulloch Profile Picture
    33 on at

    Did you ever find a solution Marcelo?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Okay I'm not sure if anyone else is still having this issue in 2021, but i was, and i think i figured out a solution. Works perfectly for me, and hopefully this post helps others.....

     

    So in the gallery that keeps resetting to no selected items after a successful Patch(), i set the onselect property of all items in the gallery to:

    Select(Parent);Set(GallerySelected,ThisItem.uniqueIdentifier)

     

    THEN.... i set the Default property of the Gallery to:

    LookUp(DataSource,GallerySelected=uniqueIdentifier,ThisRecord)

     

    Final Step.... the button that is triggering the Patch, at the VERY end of that formula, do this:

    Patch(blah blah blah);Reset(Gallery)

     

     

    Like i said, this is an old issue, but if anyone else experiences it, this workaround works like a charm 🙂 Happy Apping!

  • AdamKB Profile Picture
    15 on at

    Lovely solution! Thank you!

  • DEVREYES Profile Picture
    99 on at

    Thanks a lot! This works like a charm!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard