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 / Custom Page with a gal...
Power Apps
Unanswered

Custom Page with a gallery having a dropdown control gets cleared after Patch

(0) ShareShare
ReportReport
Posted on by 11,415 Moderator

Hi All,

 

I am running into an issue with a dropdown in a gallery so I have a dropdown modern control in a gallery as below:

 

There is a save button that does a patch on changed records , after the patch I am refreshing the gallery source but what happens is the dropdown gets cleared afterwards, I have tried with classic Controls still same problem.

 

Anyone has faced this issue?

Mira_Ghaly_1-1709437911555.png

 

 

 

Categories:
  • WarrenBelz Profile Picture
    156,550 Most Valuable Professional on at

    Hi @Mira_Ghaly ,

    Whenever you action something from within a Gallery, it resets itself and all controls revert to their Default value, so that Combo Box needs to be defaulted to the value you just patched. If the Items are from a collection, you can use AddColumns and then patch to the added column as well.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    Hi @WarrenBelz 

    I am not sure what do you mean by the Combobox needs to be defaulted to that value you just patched.

     

    I am setting the defaultselecteditems to thisitem.x

     

     

    The items in the dropdown are from choices column in dataverse

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    Gotta be something up with the defaultselecteditem on the dropdown? What is it set to? Or are the drop downs blank when you click them or just the selected item clears? 

  • WarrenBelz Profile Picture
    156,550 Most Valuable Professional on at

    @Mira_Ghaly ,

    I was suspecting an "unbound" control with no default value - that is generally the reason for this behaviour. What type of field are you patching to and what is the Items of the Combo Box and its output (ComboBox.Selected.Output). The DefaultSelectedItems (using the output) if x is a Text field would be

    {Output: ThisItem.x}

    It is also important that your gallery is linked directly off the list that you are patching to (not off a collection), so the source of the gallery record is updated and refreshed to show the new value.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard