[Solved] How do I prevent a button from being pressed twice or more?

I get a value when I press a button.
I want to receive once even after pressing several times.

This is the same as your question about a first run variable for a guide page. You would use the same blocks to allow a button to “run” (be tapped) only once.

1 Like

In the on click block, you would disable the button. Then enable the button with some other action in the app, Such as when changing the value of some variable.

1 Like

Hi, @mom7667yafy! :wave:

A quick solution for you would be,

Every time the user presses a button, get your value, and disable it.
Next, only enable it when you want the user to send another value / click one more time.

Thanks! :blush:

1 Like

Can anyone show me an example block?
I still don’t know.

This is the idea. But I’m not sure a stored variable will initialize to false.

Screen Shot 2020-01-13 at 11.20.48 AM

Oooh, simpler solution:

Screen Shot 2020-01-13 at 11.27.50 AM


This is helpful but visually ‘Disabled = true’ makes the button look washed out and unprofessional.

I’ll look into hiding the button or figuring out a different transition.

what about logic that doesn’t let anything happen unless some other condition is true. or that alerts you “hey, you haven’t done something yet…”

^^^this is the route that I take. make a custom function. use it where needed.
from whence thunkable does not provide… build

I read that as

“whatever bollocks you want”