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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Incorrect behavior in ...
Power Apps
Answered

Incorrect behavior in dropdowns - Wrong choices while using in Gallery

(0) ShareShare
ReportReport
Posted on by 16

Hi All, (sorry for the long email)

 

I have a serious control/UI problem,

Im creating an app with a gallery as a form (where you can update the information in the first screen).

The gallery has 3 independent dropdowns (less than 8 options each) with a Patch function during onChange, so everytime you change the dropdown it sends the Patch to a sharepoint list.

 

The app works like a charm (on a database level), but is having an error ramdomly (Some times when you change too much the selections or sometimes when you start for the first time).

 

Error description:

When I use one of the dropdowns in an specific record, the other records in the screen change the selected options ramdomly (not afecting the database, a.k.a. not triggering the Patch onChange) but causing confusion to the user.

 

A workaround It's helping is a message for the USER "If you notice a weird behavior in the dropdown, please click on the icon "REFRESH DATABASE" [Icon with a Refresh()].

 

Im using this properties in each Dropdown: 

-Items: Table(record,record)

-Onchange: Patch(Database,thisItem,"Field":Dropdown.Selected.Value)

-Default: If( IsBlank(ThisItem."Datafield),"Option 1",Lookup(Database, ID = ThisItem.ID,"Datafield")

-Reset: False

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at

    Hi @DiegoB ,

    This is a known issue when triggering an action from within a gallery from an unbound control. It causes unbound controls in other records to reset.

    One solution is to save one record at a time, but it can be overcome by binding the control to a field in the gallery source, Patching to this field and making the field the Default of the control. This is relatively simple if you are using a collection as the gallery source as you simply use AddColumns to temporarily store the data as above. 

     

    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.

  • WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at

    Hi @DiegoB ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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.

  • DB-23071841-0 Profile Picture
    16 on at

    Hi @WarrenBelz ,

     

    Thank you very much for the help,

    It was solved with your solution, now its working perfectly!

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard