forms api

Custom Drupal 6 Multistep Form Wizard

I'm starting on my second major version of a custom D6 multistep form-based module with a few interesting requirements, particularly:

Drupal 7 #ajax incompatible with Ctools form wizard

According to Earl's comment on a related issue, there is an incompatibility between Ctools' Form Wizard tool and Drupal's #ajax functionality in Drupal 7.

Multiple Forms on One Page

I noticed a bug on my page where one form in a block was being submitted to another form that was in the body of the page.

By default, when a form has no "#action" defined in the $form array, it will post to itself--on whichever page it is displayed--and magically work :)

But when you have more than one form on one page, make sure each form has an #action property set to a valid menu callback that routes back to drupal_get_form for each form.


Syndicate content