Hi,
does anyone know how to limit the amount of times a button can get pressed in row or during a specific amount of time?
Hi,
does anyone know how to limit the amount of times a button can get pressed in row or during a specific amount of time?
You could setup a counter connected to pressing the button. Then have a condition on the button that says to make the button not clickable when the counter hits a certain number.
Something in that direction?
How do I setup a counter? And would it then be possible to lets say, reset the counter after 30 minutes?
something like this?
https://globerelocom.bubbleapps.io/version-test/buttoncounter?debug_mode=true
basically what you do is create a custom state on the button of a number. Something like âcurrent.countâ. Then the value of the state each time you click the button should be that buttons custom state + 1.
On the button you set a condition for the button to become not clickable after a certain number.
Oh and you can set a workflow to âdo after 5 secondsâ (you can change the 5 to any number), to change the custom state of the button to 0
I couldnât use the link, but I did what you said and created a custom state called current.count.
Then when a user clicks on the button I set the workflow to âset state current.count of buttonâ with the value âthis buttonâs current.count +1â
And I added a condition âwhen this buttonâs current.count is 1, this button isnât clickableâ.
I canât figure out how to reset the current.count tho?
You create a workflow on whatever you want to reset it, and use the Element, Set State action choose the button, choose the state and set its value to 0.
I managed to figure it out! I put unneccessary dynamic inputs that didnât need to be there.
Thanks for your help!
This topic was automatically closed after 70 days. New replies are no longer allowed.