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 / Comparing current and ...
Power Apps
Answered

Comparing current and updated value in input field

(0) ShareShare
ReportReport
Posted on by 118

Ok, I have been scratching my head enough and have scoured the internet for answer to this one without success. So any help is enormously appreciated

 

I am building an equipment booking/loan system in Powerapps and with a SharePoint list as its data source. it all works ok except for one thing. how do I restrict the quantity the client can book to the number that is available on the shelf when client decides to change the quantity they have already booked.

 

So there is a box on the form which shows clients the available quantity. If the client exceeds that when they initially book, I can flag that up as error. That's easy because I can compare what's available with what the client types into the input box as they are in separate boxes. My question is this:

  1. Client books 10 cameras while there are 15 on the shelf and submits the form
  2. Client changes their mind and decides they need 6 more. So they edit the form and put 16 in the same input field that already contains 10

How can I check the updated quantity does not exceed the total on the shelf?

 

I tried storing the current number in a variable and compare that with the updated number client inputs. But I didn't manage to get it to work. Essentially, is there a way to compare the updated content of an input field with the previous value it contained?

 

Thank you

 

eg

Categories:
I have the same question (0)
  • Verified answer
    Siamak Profile Picture
    118 on at

    To whoever sees my post. I have found the solution. If you are interested, I used a local variables to store the initial content and then compared that with the updated content

     

  • Ram Prakash Duraisamy Profile Picture
    5,885 Super User 2026 Season 1 on at

    Hello @Siamak,

     

    That was am perfect way 

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 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard