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 / Selecting dropdown val...
Power Apps
Answered

Selecting dropdown value in first item of gallery updates dropdown default value for all items in gallery

(0) ShareShare
ReportReport
Posted on by 20

Hi, 

I have a gallery that contains a dropdown for each item.  The user will select a value from the dropdown and then select a button that updates the item in the SharePoint list with the selected value via Patch.  The dropdown is set to DisplayMode.View after the patch and the default property of the drop down is set to ThisItem.Status.Value so the user can see what was recorded on the list. 

 

The issue I am running into is that the function works fine on any other item in the gallery except the first item.  If you select the dropdown value in the first item then select the button to patch, it updates the default value for all the drop downs in the gallery to what was selected.  It does not update the list, just the default value for the dropdown.  It goes from a blank value to whatever was selected on the first item.

 

List column where it is patching to is a Choice Column where default value is blank, all fields in this column are blank until patched with the selected value. 

Items property of dropdown: [“”,”Current”,”Not Current”, “Current with update”]

For default property I have tried the following with the same results: 

 

  • LookUp(SPList, ThisItem.ID=ID, Status.Value)
  • ThisItem.Status.Value
  • If(IsBlank(ThisItem.Status.Value),Blank(), ThisItem.Status.Value) and conversely If(ThisItem.Status.Value <> Blank(), ThisItem.Status.Value, Blank())

And probably a couple of others I can’t remember at this point, 🤣

 

If anyone has any suggestions, I truly appreciate it!

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @Del1,

    I have reproduced your issue on my side... so weird.

     

    I have a worksround for this issue, please give up the button updating....use the OnChange property of the Dropdown instead.

    vqiaqimsft_0-1693360750857.png

     

  • Del1 Profile Picture
    20 on at

    Thank you for the workaround, I’ve been able to implement it. 

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