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 / Choice Columns display...
Power Apps
Unanswered

Choice Columns displaying previously edited value when choosing another item.

(1) ShareShare
ReportReport
Posted on by 138
I have this issue in two Power Apps so it's not specific to one Power App. In both Power Apps I have Galleries that list out the Items in a SharePoint list. I have an edit icon for each item that takes the Gallery1.Selected record and copies it into varItem and Navigates to the Edit screen. I have choice fields in both that are single select. When I check the varItem.Status value it is correct. What's happening is if I select an item and then edit the Status field and Submit and then select another item to edit, it will show the choice that was just updated in the previous item, instead of the correct status for the current item. If I wait 10 seconds after editing the first item, it seems to provide the correct varItem Status value in the current item.

So Power Apps has a timing issue? Is anyone experiencing this?
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at
    Can you please post (in Text) the Items of the drop-down, the Default (or DefaultSelectedItems if a Combo Box), the Items of the Gallery and the code you are using to Patch the record you have updated.
     
     
  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at
    Are you using a Form or just Dropdowns or Comboboxes?  If you are just using  controls one of the problems might be that default only applies after the control is Reset or before the user chooses something when the screen loads.  You may want to add a Reset(dropdownControl) to your submit button code to make sure it reapplies the default.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • kbirstein Profile Picture
    138 on at
    THanks Paul! The Reset of each control worked. However, I have NEVER had to do this before. It's clear that Power Apps is not updating the choice controls when varItem is filled with a new record. NOTE: The varItem values for the choice fields are CORRECT but the Default property for the choice fields, for example "varItem.'Select System'.Value" is not being populated by varItem on the Edit screen. It is showing the value of the PREVIOUSLY selected item. 
     
    this is a terrible bug. Any idea when Microsoft will fix this? I'm now going through 15 solutions to apply the fix!
  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at
    Controls in Power Apps that have default settings have always worked this way. The default is applied only up to the point where a user interacts with the control. After that the value the user puts in the control takes precedence.  Default is only applied again when the control is reset.  When using controls in a form resetting the form also resets the control. Its not a bug, its the way the controls are designed to work.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • kbirstein Profile Picture
    138 on at
    HI Paul,
     
    Excuse me, but maybe you don't understand. For example, if the varItem.SelectSystem.Value is "AMP" when I look at the table and then I navigate to ANOTHER SCREEN where there is a control with a Default of "varItem.SelectSystem.Value", why would Power Apps not provide that value in the control? Makes no sense.  . 
     
    Additionally we observed the control displayed the correct default value from varItem at 4:00 and then at 5:00 it didn't display the right default. Additionaly testing observed that the correct varItem value would be displayed as the default value after waiting 10 seconds after updating the first item and then clicking on another item. So what's up with that?
     
    Kathry
  • Pstork1 Profile Picture
    69,129 Most Valuable Professional on at
    If you navigate to a new screen where the default of the control is set to varItem.SelectSystem.Value then that is what I would expect it to show.  But if you pick something else in that dropdown, navigate to a different screen, and navigate back having changed varItem.SelectSystem.Value the control will show what you picked before you navigated.  The default property is only used when you first load the control and after issuing a reset(). Navigating away from the screen and then back doesn't reset the control and won't re-apply the default.  It will show the previously selected value because the default was overridden by user input. Navigating away and back doesn't change that.  Nor does changing the value that default is pointing to.
     
    Hope that clarifies.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • kbirstein Profile Picture
    138 on at
    Still doesn't explain why it worked sometimes and sometimes it didn't. . .jus saying

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard