Is it possible to do multiple forms on the same page?

Each with its own submit button. (I am ok with the page refreshing when a submit is made).

Comments

nextpulse’s picture

Is this it?

function hook_forms() {
  $forms['mymodule_first_form'] = array(
    'callback' => 'mymodule_form_builder',
    'callback arguments' => array('some parameter'),
  );
  $forms['mymodule_second_form'] = array(
    'callback' => 'mymodule_form_builder',
  );
  return $forms;
}
drew.p’s picture

Panels?

nextpulse’s picture

Well - panels is still alpha for D6 and it seems to be a bit of an overkill.
I am doing this via custom module.

anyhow - I figured it out using custom forms.

nevets’s picture

In general yes, though you can not place the same form a single page more than once and you need to use panels or a custom module to build the page.

nextpulse’s picture

is it compatible with drupal_add_tabledrag?
i.e each form uses drupal_add_tabledrag, ( within its own form only - of course.)

nevets’s picture

Don't know.