You could call a service when "Clicked" event is triggered for the button widget;
in the service you could return false and then bind the reuturn boolean value to the visible propterty to the button.
1. in your service author like this:
2. in mashup build like this:
Hope this helps,
You can use an Expression widget for that with an an expression with returns false.
example Expression: 1==2?true:false
Set OutputBaseType as Boolean
And check the Output property.
Bind the click event of button to Evaluate of Expression widget.
and link the output of Expression widget to visible property of the Button
Do let me know if you face any issues.