
I also get these errors when viewing the following Results pages:
/node/8/webform-results (Results tab for my webform):
Notice: Undefined index: College in _webform_table_element_alter_submission() (line 533 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: High School in _webform_table_element_alter_submission() (line 533 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: College in _webform_table_element_alter_submission() (line 533 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: Additional Training in _webform_table_element_alter_submission() (line 533 of ...\sites\all\modules\webform_table_element\webform_table_element.module)./node/8/submission/7 (Viewing a submission):
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 552 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 552 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 552 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 552 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 552 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 552 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 552 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 552 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
/node/8/submission/7/edit (Editing a submission):
Notice: Undefined index: date_graduated in _table_element_expand_columns() (line 148 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: college in _table_element_expand_columns() (line 148 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: additional_training in _table_element_expand_columns() (line 148 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: fe_worked_from in _table_element_expand_columns() (line 148 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: e2 in _table_element_expand_columns() (line 148 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: e3 in _table_element_expand_columns() (line 148 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: fe_worked_to in _table_element_expand_columns() (line 148 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: e2 in _table_element_expand_columns() (line 148 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: e3 in _table_element_expand_columns() (line 148 of ...\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
Notice: Undefined index: #attributes in form_process_date() (line 2944 of ...\includes\form.inc).
A side note, I have this Webform patch installed to make the "day" part optional:
http://drupal.org/node/336150#comment-6105150
If there's any information you need from me, let me know.
Hope you can help, it means a lot.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | webform_setup.png | 36.06 KB | jelle_s |
| #10 | before_submission.png | 43.63 KB | jelle_s |
| #10 | submission_overview.png | 13.17 KB | jelle_s |
| #10 | submission_view.png | 32.84 KB | jelle_s |
| #10 | submission_edit.png | 35.73 KB | jelle_s |
Comments
Comment #1
ownage commentedComment #2
ownage commentedFound the issue!
When you clone a Webform Table Element, make sure you go in and change the Field Key of the cloned table!
Having two of the same field keys will stop you from being able to view the table & save submitted information.
------
That aside, don't you think that Webform should automatically change the field keys upon the cloning of something? Even the weights are all the same regardless of where you place the group with the slider (if you choose to show weights you will see this).
p.s. Thanks for the Switch Rows & Columns update 10 days ago. As you can see, it really comes in handy!
Comment #3
ownage commentedI'm going to leave this open just so some work can be done on the errors I stated in post #1.
Comment #4
attiks commentedNice debugging, regarding #2, normally if you clone a field, you'll get a screen with the details and the field key has to be changed stating that the key has to be unique. Didn't you get this screen? The cloning is standard functionality of the webform module.
Comment #5
ownage commentedThanks. Yes I see that screen, but I am not given a notice that the machine readable field key is already in use when I go to save a clone on that screen. So when cloning a fieldset that has a table element child inside, it assigns the table element child the same field key.
Comment #6
karingownage - would you please do me a favor and add a checkbox [like a "check box to agree to terms and conditions"] within your table layout (which by the way looks fantastic). I'm having issues getting it to save checbox info (radio buttons are fine) - http://drupal.org/node/1659546 - comment #1.
Comment #7
attiks commentedRegarding #5: that sounds like a general webform problem, better to open an issue at http://drupal.org/node/add/project-issue/webform and link it with this one.
Comment #8
ownage commentedPosted an issue for Webform: http://drupal.org/node/1663624
#6 KarinG: I also responded to your issue.
Comment #9
attiks commentedaccording to #1663624-2: Cloning doesn't change "field key" or "weight", the keys are our problem, I will need to have a look, but for now the work-around is to change the keys manually.
Comment #10
jelle_sI tried to reproduce the errors you got but couldn't:
Here's what I did:
Screenshots:

Webform setup:
Data right before submitting:

Submission overview:

Viewing one submission:

Editing a submission:

Comment #11
Anonymous (not verified) commentedHi all,
I'm trying to use this module (version 7.x-1.7, not dev) with Webform version 7.x-4.0-alpha4 (could this be my problem?!?!)
I started getting the following warnings after adding table elements:
When the submission to the database is done, the data column of webform_submission_data contains nothing but the word "Array".
I looked at the print_r dump of the submission data and it seems like all the table element data which were entered into the webform are nested two levels deep: [value]=>[0]. Typically, native webfoms' data are only nested one level deep: [0]. This could explain the cause of getting "Array" instead of the actual data: the part of the code that parses the submission data is only expecting one level of nesting. When an array is presented to PHP to be evaluated in a textual context, it evaluates to the word "Array".
For instance, fields with cids 75 and 76 are simple webform text fields, whereas the field with cid 77 is a table element. Notice the additional [value] nesting that wraps around [0].
Any help/points will be greatly appreciated!
Thanks!
Comment #12
Anonymous (not verified) commentedI have managed to fix both the error and the problem of not saving of the data in the tables:
About the error please read here http://drupal.org/node/1720034
Regarding the saving of data it was compatibility with webform 7.4 branch, as suspected, they have removed the ['value'] level from the $submission->data so i have fixed it by removing all the ['value'] from the table element module code, that did the trick. The data is now being saved properly and retrieved as well properly...
So is it possible to create an alpha sort of release to correspond to webform 7.4?
Comment #13
jelle_sThere is now an alpha release (7.x-4.0-alpha0) that works with webform 4.
If you continue to have these error messages, feel free to reopen
Comment #14
Anonymous (not verified) commentedThanks!
Was my fix the only thing needed?
Comment #15
jelle_sIndeed, just removed all uses of the 'value' key