Closed (fixed)
Project:
Webform
Version:
7.x-3.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2012 at 09:27 UTC
Updated:
13 May 2012 at 05:11 UTC
I'm hacking up a new element based on the grid.
Instead of radio buttons, I am using checkboxes.
Instead of a single value, checkboxes return an array.
The saving function can't cope with that, I don't see a way to serialize my data before it goes to be saved
One approach is to serialize the database field.
$tables['webform_submitted_data']['fields']['data']['serialize'] = TRUE;
However this will have other knock on effects I'm sure.
Comments
Comment #1
quicksketchUse
_webform_submit_[component_name]()in your custom component. See how the date, time, and file components convert the data from arrays into string values in their submit functions.Comment #2
quicksketchUpdating title for clarity.
Comment #3
quicksketchClosing after lack of activity.