I have successfully added a single field to the sigup form via the template.php function, custom_signup_form. I can also see that the data is successfully entered into the table. However, I cannot get the data to show. The "Additional Signup Info" field exists, but shows nothing. If I enter the name of the field to show, it does not 'stick'. It appears blank when I reedit the field.

The error that keeps cropping up:
Notice: Undefined index: form_data_fieldname in signup_handler_field_signup_user_form_data->pre_render() (line 22 of /Users/mariagwyn/Sites/acq-dpl/drupal-7x/sites/all/modules/signup/views/handlers/signup_handler_field_signup_user_form_data.inc).

Comments

dalanz’s picture

Have you found a solution for this? Anyone else?

sophiekovalevsky’s picture

Hi mariagwyn, could you try to explain the issue with a specify link where you have the problem, or with some kind of image?

bhowell09’s picture

StatusFileSize
new262.29 KB
new232.62 KB

I'm having the same issue. I've added a number of new fields to my themes template.php and they all allow for input, but I can't get them to display in the attendees list. I've gone into the "signup_user_list" view and added "Signup: User: Additional Signup Info" to the fields and then added one of my new input fields into the "Field Name" box, but after I click apply and go back into the newly added field it is blank. Too many uses of the word field? :)

Attached are screenshots of my added view field and the errors I get after I add it. What I'm really looking to do is view all of the new input fields in this list and then (probably a different subject) find a way to export them to a spreadsheet or something for manipulation.

List of errors:

•Notice: Undefined index: form_data_fieldname in signup_handler_field_signup_user_form_data->pre_render() (line 22 of D:\ChapterSites\tokyodev\sites\all\modules\signup\views\handlers\signup_handler_field_signup_user_form_data.inc).
•Notice: Undefined index: form_data_fieldname in signup_handler_field_signup_user_form_data->render() (line 35 of D:\ChapterSites\tokyodev\sites\all\modules\signup\views\handlers\signup_handler_field_signup_user_form_data.inc).
•Warning: Illegal offset type in isset or empty in views_handler_field_prerender_list->render() (line 53 of D:\ChapterSites\tokyodev\sites\all\modules\views\handlers\views_handler_field_prerender_list.inc).
•Notice: Undefined index: form_data_fieldname in signup_handler_field_signup_user_form_data->render() (line 35 of D:\ChapterSites\tokyodev\sites\all\modules\signup\views\handlers\signup_handler_field_signup_user_form_data.inc).
•Warning: Illegal offset type in isset or empty in views_handler_field_prerender_list->render() (line 53 of D:\ChapterSites\tokyodev\sites\all\modules\views\handlers\views_handler_field_prerender_list.inc).
benjf’s picture

Status: Active » Needs review
StatusFileSize
new2 KB

This patch seems to fix it for me. Please review :)

The 'option_definition' portion fixes the individual fields; the changes in 'render' fix the display of all fields together.

rennevat’s picture

Thank you. The patch resolved the issue for us.

pavlosdan’s picture

I was having the same issue. The patch from #4 resolved it.

cwyant’s picture

Patch in #4 worked for me as well.

sgabe’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.8 KB

I am attaching a re-roll of the patch in #4 which applies fine and fixes the issue.

sgabe’s picture

sgabe’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

chaloum’s picture

#10 I applied the patch but still have the error

Fatal error: Cannot access empty property in /Library/WebServer/Documents/amppdt/sites/all/modules/signup/views/handlers/signup_handler_field_signup_edit_link.inc on line 24

sgabe’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.