Is there a way to make a button clickable just a certain # of times?
I would like my users to purchase an item that will let them click a button just 3 or 5 times depending on the purchases
Example:
-User buys 3 attempts
-whenever he wants he can click the button attempt
-when the button is click a thing on the data base gets recorded. (attempt history record)
- when user finished those purchased attempts the button gets disable
- if user clicks attempt button but doesn’t have any purchases then a pop up shows up telling user to buy more attempts
Thank you