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 / Use Button to update N...
Power Apps
Suggested Answer

Use Button to update Numeric Value in Text Field of SharePoint list.

(0) ShareShare
ReportReport
Posted on by
Hi All, 

I have a SharePoint list which has a power apps front end. i am trying to configure so that when a button is selected it will update the value of one of the fields in the SharePoint list to one less than the current. 
 
So in PowerApps I have an edit form, with data pulled from the SharePoint list: 
 
I can edit the form manually by retyping the value and saving the form which will update the form but i want to use an add/ subtract button to increase the value/quantity. 



i have tried a line of the below:
 

DataCardValue13.Text = Value.Number-1)

 which displays a warning message :

 
any assistance would be appreciated. 
 
thanks 
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,978 Moderator on at
     
    Change it to this
     
    DataCardValue13.Text = Text(Value.Number-1)
     
    So that it converts the value to text 
  • Suggested answer
    MS.Ragavendar Profile Picture
    6,961 Super User 2026 Season 1 on at
     
    Update the form value before saving, use a variable Button to Decrease Value just add Value() function which help you to store the numeric value
     
    UpdateContext({varQuantity: Value(DataCardValue13.Text) - 1});
     
    Default Value of the Text Box
     
    If(IsBlank(varQuantity), Parent.Default, varQuantity)
     
    Patching to SP
     
    Patch(
        YourSharePointList,
        YourForm.LastSubmit,
        { Quantity: varQuantity }
    )
     
    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,055

#2
Valantis Profile Picture

Valantis 666

#2
11manish Profile Picture

11manish 666

Last 30 days Overall leaderboard