I have a node type with fields, some required, some not. I'm tring to do a multi step form of the node form create. Required fields are the first step and remainings is the next one.
I hide the fields not needed in the first step, with hook_form_alter, thats the easy part, but I don't know how to convert the form to multi step form. I read the API doc, which says, that I have to use
$form['next'] = array(
'#type' => 'submit',
'#value' => 'Next >>',
);
this is how drupal knows that this is a multi-step form. but if I understand it correctly, I cannot use this in hook_form_alter since the $form is not in that state there.
Where can I remove submit and add next to the form ?
Thanks for the help.