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 / Patching resets my dro...
Power Apps
Answered

Patching resets my dropdowns

(0) ShareShare
ReportReport
Posted on by 20

Hi, I am currently following this tutorial: Save Multiple Records with a single click in Microsoft Power Apps (youtube.com) 

 

I've created everything and configured it following the guide above, however when I select an item in one of my dropdowns it automatically resets to the first option. I'm pretty sure its got something to do with how the tutorial guides you to patch the data as when i remove the code the dropdown doesnt reset.

 

It has directed me to patch to the collection via OnChange, below is the code ive used:

 

 

 

Patch(
 DataInput,
 ThisItem,
 {Title:Drp_Title.Selected.Value}
)

 

 

 

Because these are cascading Dropdowns which grab their data from another collection connected to a SP list the code in my items option is:

 

 

 

Distinct(
 DDData, 
 Title
)

 

 

 

Can anybody see a problem with how these are set up?

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Kieran056 ,

     

    If it is a dropdown control , you need to set it's Default property to:

    ThisItem.Title

    If it is a combo box control , you need to set it's DefaultSelectedItems property to:

    {Value:ThisItem.Title}

     

    Best Regards,

    Bof

  • Kieran056 Profile Picture
    20 on at

    Hi @v-bofeng-msft Thankyou for the post, a simple solution that solved my problem! Would you be able to explain why my that change solved it so i know in the future?

     

    Thanks again!

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard