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 / Create a Button to inc...
Power Apps
Answered

Create a Button to increase a number field value by one

(0) ShareShare
ReportReport
Posted on by 3,514

I have the following power app form:-

 

redgreen.png

 

now i want to increase the ScoreGreenPoint by 1 when the user clicks on the "+ Green" button? is this possible?

 

Thanks

Categories:
  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Yes.   If your ScoreGreenPoint (ScoreRedPoint) labels are displaying a variable value, your button formula would look like this:

     

    Set(varScoreGreenPoint, varScoreGreenPoint + 1)

     

     

  • johnjohn123 Profile Picture
    3,514 on at

    @JR-BejeweledOneso i need to create a variable named varScoreGreenPoint ? first?

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    What is your items property of the label that displays the points?

  • johnjohn123 Profile Picture
    3,514 on at

    @JR-BejeweledOne  It is of type number

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Can you share the formula please?  

  • johnjohn123 Profile Picture
    3,514 on at

    @JR-BejeweledOne  i did not add a formula

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Do you a have a formula in the 'Default' property?   Where is it getting the value that it displays?

  • johnjohn123 Profile Picture
    3,514 on at

    @JR-BejeweledOne  did not get your point

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Before I can answer your question on if you need a variable, I would need to know what the control is (label or text input) where you are going to display the number and if you already have any formula in the 'Default' or 'Text' properties.  I mistakenly asked about Items early and I meant 'Text'.

  • johnjohn123 Profile Picture
    3,514 on at

    @JR-BejeweledOne 

    have the ScoreGreenPoint as sharepoint filed which have a number type, as follow:-

     

    one100.png

     


    and i want this to get increased by 1 when the user click on the button.. and the field has this properties-

     

    properties.png

     

    i hope this clarifies the case.. 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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard