Posted by sharique on May 13, 2008 at 7:35am
Hi,
I'm working on a site which has a very long input form (a cck) , is there any way by which I can split in to multiple steps and save data in each step.
Hi,
I'm working on a site which has a very long input form (a cck) , is there any way by which I can split in to multiple steps and save data in each step.
Comments
field groups
You can divide the form into a number of field groups. Field groups can then be collapsible or collapsed by default. You can also divide the form into multiple tabbed pages with the cck_fieldgroup_tabs module.
won't save though
sorry, overlooked that part about saving each page. Field groups won't help you there. You could try autosave though.
CCK Wizard and CCKWitch
I know of two projects that try to address this:
http://drupal.org/project/wizard
http://drupal.org/project/cckwitch
I haven't used either one, though. If you use either one, please let us know about your experience.
Doh!
Wizard says to not use on production sites; Witch hasn't released any files. Doh!
A module example
Multipage forms with CCK which shows how to write php code in a custom module for hook_node_form(), hook_form_alter() and hook_form_submit() to achieve multipage forms. It's not been packaged in a contrib module but if you're desperate, that's a good place to start.
wizard
wizard http://drupal.org/project/wizard tried to do exactly that.