Hi ,

Can someone point me to a good resource for learning about multistep forms in Drupal 6.x.? I am stuck with some issues like in the posts below:

http://drupal.org/node/288537

http://drupal.org/node/240947

No amount of searching has given any good result or solution.

Regards

karthik

Comments

mantyla’s picture

I'm not sure where to find such documentation, but I was able to make a multistep form work using this guide for Drupal 5: http://drupal.org/node/101707 and applying the changes for Drupal 6 I found here: http://drupal.org/node/144132.

As for your two problems: I have no idea what's up with that first one. The form ID should be different, that's working as intended, but the element IDs might be some weird bug. I couldn't tell without seeing the code.

For the second problem, what was wrong with using a hidden value in the form for passing information? I wouldn't have hesitated to keep using a hidden step value if it worked.

ponkarthik’s picture

Hi,

Thanks for the quick reply. I actually followed the steps given in the two links that you have given to create the forms. But cannot figure out why the element ids should change. Can you please tell me why Drupal is assigning the number in form and element ids - eg. 'edit-xxx-1' . Does that number vary if there are more than one forms in the page ?

Karthik

francewhoa’s picture

The module Multistep is able to do that http://drupal.org/project/multistep

Loving back your Drupal community result in multiple benefits for you  
jaypan’s picture

This is a great reference:

http://drupal.org/node/262422

Contact me to contract me for D7 -> D10/11 migrations.