Hi,
In my custom module I'm using drupal_get_form to display webform. All components display fine except webform table. PHP notice message comes up instead, saying:

Notice: Undefined index: #webform_component w _table_element_expand() (line 80 all/modules/webform_table_element/webform_table_element.module).
Notice: Undefined index: #title w _table_element_expand() (line 93 all/modules/webform_table_element/webform_table_element.module).
Notice: Undefined index: #title w _table_element_expand() (line 98 all/modules/webform_table_element/webform_table_element.module).

My function is simple:

function mymodule_signup_form($form, &$form_state, $node) {
  $submission = array();
  return drupal_get_form('webform_client_form_' . $node->nid, $node, $submission);
}

Line 80 is in webform_table_element.module:

 $cid = $element[$child]['#webform_component']['cid'];

So why that '#webform_component' index and other indexes are not set ? I must be missing something obvious ...

Comments

Jelle_S’s picture

Status: Active » Postponed (maintainer needs more info)

May I ask why you are doing it this way? why not simply direct your users directly to the form, if all you do is getting the form and showing it to them. I can't think of any use case for this usage....

attiks’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)