Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

In gallery when I update a control it resets all other controls. How to prevent this to happen

(1) ShareShare
ReportReport
Posted on by 22
Hi,
I am using a gallery and inside gallery I am using a mix of controls.
 
Issue:
If I update a drop-down or toogle control  then it resets all other controls in the gallery/repeater control.
I am using UpdateIf function to update the collection on 'OnChange' event of the controls.
 
Please refer the below screenshot for better under standing.
 
Please suggest ways to ignore/prevent this to happen.
 
Thanks for the help in advance.
 
 
 
  • stampcoin Profile Picture
    3,126 on at
    In gallery when I update a control it resets all other controls. How to prevent this to happen
    That's great, thanks for sharing .👍
  • TS-15052332-0 Profile Picture
    22 on at
    In gallery when I update a control it resets all other controls. How to prevent this to happen
    Apologies for late update .. 
     
    @stampcoin and @Gabriel G. thanks for your input .. the replies helped me a lot.
    The issue is now resolved. As mentioned in my query I was using UpdateIf fx on "OnChange" event of the control. I am still using that but I added below code in addition to resolve.
     
    I added "ThisItem.CurrentProperty" to all the controls on their Default event and that resolved all the issues.
     
    Thanks for the help. 👍
  • Verified answer
    Gabriel G. Profile Picture
    720 on at
    In gallery when I update a control it resets all other controls. How to prevent this to happen
    Hi,
     
    As @stampcoin explained, you need to bind values of controls to a column of your record. (which means you probably need to make new columns on your collection or use variables). You need to make sure you use default property bind on your column value too. If your controls still resetting, it is because your collections are not updated properly. Make sure you validate each step of your processes by evaluating your collections and variables here to help you in your debug:

    You will get something like that so you can see what is happening in variables:
     
    I hope it helps!
    _______________________________________________________________________
     
    Please click Does this answer your question 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 a Like.
  • Verified answer
    stampcoin Profile Picture
    3,126 on at
    In gallery when I update a control it resets all other controls. How to prevent this to happen
    One way you may try is use collections or variables to maintain Control States.
    To preserve user input states, especially within galleries, use collections or variables to hold temporary data.
    basically:
    1. When an item loads, initialize a collection or variable that holds default states.
    2. When controls within the gallery are updated, update these collections or variables.
    3. Bind each control’s value to the corresponding value in the collection/variable.
    hope this helps.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1