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 / Value on InputText in ...
Power Apps
Answered

Value on InputText in Gallery won't change

(0) ShareShare
ReportReport
Posted on by 31

Hi,

 

I have gallery created from DB as collection.

One column in galery I set as "Text Input" and set value from collection to Default = ThisItem.Qty;

But when I change value in this field I see that on screen is new value, but in a collection is the same old value. I don't know why this walue won't change 😞

When I check collection, in Qty fields are the same old values 555 in first row and 666 in second row. But should change to 454 and 345. When I set in OnChange property: Notify(ThisItem.Qty);  I see also old value.

1.PNG

Any ideas?

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Pablo2 

    What code is currently in the OnChange property of your gallery text input?  If you want the collection to be updated you have to use the PATCH function to change the values in the collection.  Simply writing new values in the text box will not change anything in the collection.

     

    ---
    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

  • Rozpalacz Profile Picture
    31 on at

    But what should be there? I have try with:

    Patch(MyCollection, ThisItem, {Qty:ThisItem.Qty})

     

    but it doesnt work. I think that problem is with ThisItem.Qty in {Qty:ThisItem.Qty}

  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @Pablo2 

    I agree, ThisItem.Qty is the issue.  ThisItem.Qty looks in the database for the value.  You will want to reference the Text Input control instead and get the quantity from there.

     

    Replace this code

    Patch(MyCollection, ThisItem, {Qty:ThisItem.Qty})

     

    With this code

    Patch(MyCollection, ThisItem, {Qty: Value(your_textinput_name.Text)})

     

     

    ---
    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

  • Rozpalacz Profile Picture
    31 on at
    You were right. Thanks 🙂

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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard