Method for hiding button on a form

I need to hide a button on a Work Process form.
Name of the button is cancel_workflow_button

I can do this using the UI making another view where this button is hidden but I want to do this by writing a method. 
If someone can get me started on this that would be awesome. 

thanks!

Parents Reply Children
No Data