Desactivar un boton despues de dar click en el (Deactivate a button after clicking on it)

Buenas noches Soy nuevo en este editor y no he podido hacer que un boton se desactive después de dar click en el si me pudieran colaborar se los agradeceria

2 Likes

hola @Juan_Rojas soy malo en español, pero puedes eliminar el botón después de hacer clic en él usando este código:

onEvent(‘mouseclick’, function () {
this.remove();
});

3 Likes

Hi, I don’t want to delete the button, just deactivate it so that it cannot be clicked again

I think this is what you want.
Default:
this.functional = true;
mouseClick:
if this.functional = true
[indent] // perform function
[indent] this.functional = false

I already tried that but the button still works

I personally rather than trying to find a code prefer to just cover the button, here’s what I mean:

De- activating a button example.wick (3.2 KB)

1 Like

Thank you I resolved my problem with this example

1 Like

no problem
:slightly_smiling_face: