I’ve got an app where users can collect items they’ve ordered from a venue.
My issue is that I want to stop people being able to collect more things than they’ve actually paid for.
So I present them with how many things they’ve got available to collect and an input box to say how many they want.
They then click “Redeem” to start the Collect Process
It looks like this.
Thing is, I don’t want the “Redeem” button to be clickable if
The User is collecting more than is available OR if they haven’t entered an amount to collect (because that sends a pointless request for nothing!)
So, I’ve added a condition to make the Redeem button “Unclickable” if the Collect Amount > Available Amount or if the total of what’s being Redeemed is zero. That seems to work but the button doesn’t become clickable again if the amounts are corrected and even after I’ve put in a second condition to say “If Available > Being Collected” This button is clickable.
I’d love to put a link to the editor but I’ve been asked to keep it confidential for now.
If the above makes sense, what would you do to resolve the logic? The logic seems to be simple but it escapes me so I’ve ended up just compounding the issue by creating more and more conditions that confused the heck out of me so I’ve now deleted them all.
Thanks in advance for any assistance!