Button Event Handler

When I click a button, I have to hide it. then the button component is absent from the control component of the edit click handler.
However, the javascript code is inoperative. Please assist me.

Hey Janez,

You can run a script which will hide the button i.e.

Does this work on your end?

This code is working very well. thanks