Change visibility mesh object with button

Still stuck unfortunately, how do I get a widget button to toggle the visibility of an object?
I tried it with a light, the key press F works, the button still doesn’t.
a4326cc61da6e629d39b70a832cbcb4190a58e98.jpeg