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 / Calculate 2 textboxes ...
Power Apps
Answered

Calculate 2 textboxes to not exceed 8

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

What I have:

2 textboxes 

1 button.

Patch routine to run if the value is 8 or less

 

This would include  decimals..

 

5.75

2.25 =  8

etc....

 

What I need:  I need some way to calculate the values between these 2 textboxes..

Their combined value cannot exceed "8".

Either when i press the button or before a button gets pressed to check the Value ?

Thanks

Dave

Categories:
  • Verified answer
    zmorek Profile Picture
    3,272 on at

    Lots of ways to do it, but your button's formula can be something like:

    If(Value(TextInput1.Text)+Value(TextInput2.Text)>8, Notify("Error, must be 8 or less",Error),[your patch statement])

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard