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 / Repeating gallery anomaly
Power Apps
Answered

Repeating gallery anomaly

(0) ShareShare
ReportReport
Posted on by 1,599 Super User 2024 Season 1

I have created a repeating gallery that consists of two dropdowns and 2 multiline text fields and a button that patches the information to a collection (before being saved to a SharePoint list via a patch submit script.

 

The first patch to collection appears to work correctly:

sudosaurus_0-1692636486888.png

I then add another item:

sudosaurus_1-1692636549360.png

and I go onto add a 3rd item:

sudosaurus_2-1692636604128.png

but then if I scroll up to the first item, the text boxes have changed to the values I used in the first item!! 🆘

sudosaurus_3-1692636778056.png

I can't figure out how or why this is happening???


This is the script I'm using on the + button:

 

Patch(colDocData, ThisItem, {Subtopic: Subtopic_dd.Selected.Result, SubtopicBreakdown: SubtopicBreakdown_dd.Selected.Result, Argument: Argument_input.Text, Evidence: Evidence_input.Text}); Collect(colDocData, {SubtopicBreakdown: SubtopicBreakdown_dd.Selected.Result})

 


Any help would be appreciated! 🙂

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

    Hi @sudosaurus ,

     

    Maybe you can try this:

    Update(colDocData, ThisItem, {Subtopic: Subtopic_dd.Selected.Result, SubtopicBreakdown: SubtopicBreakdown_dd.Selected.Result, Argument: Argument_input.Text, Evidence: Evidence_input.Text}); Collect(colDocData, {})

     

    Best regards,

    Rimmon Li

  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    @v-mengmli-msft now that's how to do it! 😉

  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    @v-mengmli-msft - would there be a reason why, when I create a new row, the Subtopic and Subtopic Breakdown are the same, even after I change them and hit save - when I go back in, each row has the same dropdown value.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard