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 / OnChange stopped firing
Power Apps
Answered

OnChange stopped firing

(1) ShareShare
ReportReport
Posted on by 9

I have a Power App with a "Price" text input that allows certain users to update prices that are kept in a Sharepoint List. Once a user scans or looks up an item, they can change the price of the item within the gallery and the new price is also patched to the Sharepoint List. My code is below, with the collection and SP list names changed for clarity:

 

Patch(collection,ThisItem,{Price: Value(Self.Text)}); Patch('Sharepoint Price List',LookUp('Sharepoint Price List',Title=Gallery1.Selected.BarcodeInfo),{ItemPrice: Value(Self.Text)})

 

This seems to have started with Power Apps release 3.22022.31. It was working well before then. I appreciate any ideas to get this working!

Categories:
  • Verified answer
    RodCha Profile Picture
    216 on at

    This might be an option:

    Patch(Collection, ThisItem, {Price: Value(Self.Text)});

    Patch('Sharepoint Price List', LookUp('Sharepoint Price List', ID = ThisItem.ID)), {ItemPrice: Value(Self.Text)})

     

    By the way that your formula looks, you are creating a 'Collection' when the app runs 'OnStart', in case you are not taking only specific columns from you SharePointList, otherwise the ID might not work.

     

    P.S. is not necesary to add 'Gallery1.Selected.BarcodeInfo' in the formula since you are using it in your 'Gallery' when searching the item, instead use 'ThisItem.BarcodeInfo' but it can be more precise if you start using ID instead of anything else.

  • Shane123 Profile Picture
    9 on at

    This worked! Thanks @RodCha!

  • Harrilald1963 Profile Picture
    4 on at

    Resolver !!!!!

     

    Thank you, thank, thank you.

     

    After days of hair-tearing stress, I found your solution...Save me another sleepless night.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard