custom button on stateful form

custom button on stateful form

Is there a way to include a button or hyperlink on a stateful form that would enable one to call a function in the manner of a Custom Action on a report? 

I understand that you can do it on a stateless form, but stateless forms are a lot of extra work for such a simple request.