Hi earl, Thanks for pointing that out, do you have any pointers on alternate approach to build a multistep form which has a node form and custom forms? Would ctools form wizard help if I define my own node type using node_info etc? Maybe then I can overtake _submit handlers?
Dipen On Tue, Dec 1, 2009 at 2:03 AM, Earl Miles <[email protected]> wrote: > Dipen wrote: > >> Hi list, >> Can I mix system form with a custom form in ctools form wizard, I wish to >> create a wizard containing 1 node add form and 2 custom forms. I have >> briefly looked at advanced help of form wizard and I think there would be >> problem in dealing with _submit of node add form in module space. Has anyone >> encountered this before? I am trying to create multistep form with 1 node >> add form and 2 custom forms and ctools looks like the cleanest way but not >> sure how would I get around the _submit handler problem for node add form. >> From ctools help: >> >> " The primary difference between these forms and a normal Drupal form is >> that the submit handler should not save any data. Instead, it should make >> any changes to a cached object (usually placed on the $form_state) and only >> the _finish or _return handler should actually save any real data. " >> > > Run in fear! > > What you want to do is really really hard, especially when dealing with > nodes, because the node form is a *very* difficult workflow that is not > really open to being changed. I don't think the ctools wizard is going to > help you here. That said, at one point Nick Lewis was doing some work trying > to integrate form wizard into the node form, and he had some success, but I > haven't seen any movement there for a long time. >
