I created a new webform and added a grid to the form however after submitting the form the grid values aren't retained. I can't see them in analysis (everything reports as 0 answered) and if I edit the submission none of the grid radio buttons are selected.

Comments

quicksketch’s picture

Could you list the configuration of your grid component? It works fine for me in my testing scripts.

sylvaingirard’s picture

Same problem here.

Got a grid with:

Label: Opties

Options:
airco|Airco
leder|Leder

Questions:
Ja
Nee

Fieldkey:
opties

sylvaingirard’s picture

The solution is to switch the data from options/questions.

quicksketch’s picture

The solution is to switch the data from options/questions.

Are you saying this was a configuration error or a bug that is in the code? I'm not quite sure where the problem exists still.

jhanney’s picture

Version: 5.x-2.1.3 » 6.x-2.1.3
Priority: Normal » Critical

I have the same problem here as well. I've setup a very basic grid and the data from the grid isn't being saved. I checked out the database as well and the data column in the webforms_submitted_data is empty.

I am using version 2.1.3 of webform

Just got it working by using the new grid.inc file :)

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/webform/com...

quicksketch’s picture

Status: Active » Fixed

So, then, this problem is already fixed? I just need to make a new release.

daniorama’s picture

New grid.inc is not solving it. I just try submitting an old form and it didn't work. Should I create a new grid field on that form or should I just create a new form (creating the form again would be tedious...)

daniorama’s picture

Ok, sorry, it's working. It was just a problem with my WYSIWYG editor... There was no need to create new fields or forms, it works ok with old grid and forms. Thank you (I think this issue was solved also in the last dev version in releases)

daniorama’s picture

Title: Gird not storing data to database » Grid not storing data
delamination’s picture

Version: 6.x-2.1.3 » 6.x-2.2
Status: Fixed » Active

The grid component does not store all data if a question includes quotes. The grid data seems to be processed from the bottom up, so options below the question with quotes are stored, but options above and including it are not.

quicksketch’s picture

Version: 6.x-2.2 » 6.x-2.1.3
Status: Active » Fixed

delamination: I've reposted your request here: #318692: Grid not saving if options contain quotes, as it is a different issue than the one described here.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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