Hi earl, <div><br></div><div> 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?</div>
<div><br></div><div>Dipen<br><br>
<br><br><div class="gmail_quote">On Tue, Dec 1, 2009 at 2:03 AM, Earl Miles <span dir="ltr"><<a href="mailto:merlin@logrus.com">merlin@logrus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">Dipen wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list, <br>
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. <br>
From ctools help:<br>
<br>
" 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. "<br>
</blockquote>
<br></div></div>
Run in fear!<br>
<br>
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.<br>
</blockquote></div><br></div>