I have built a very long form in Vibe.

For readability I think I want to use the "Show Only When In Workflow States."

My idea is to break the single form into sections then in each section have a pair of form buttons, Previous and Next. The workflow would then transition to the previous or next state.

Questions:
1) What's the best way to get the workflow to transition?
My idea is to have the form set a variable when a button is clicked. The workflow would then transition based on the variable being changed.
2) If this is a reasonable solution then how do I set a form variable with a button, sorry not much on jsp?
3) How do I get the workflow to transition when the variable changes?

Thanks,
David.