Creating multi-step node forms
Recently I needed a create a multi-step node form in Drupal 6. Unlike other forms in Drupal, it wasn't as simple as configuring a new submit handler that sets $form_state['rebuild']
to TRUE. After trying a few different ways and a bit of searching, I found the solution. The trick is to hide the 'submit' button and use hook_form_alter()
on the 'preview' button to regenerate the form for step 2. However, this is probably best explained with some sample code to illustrate.