I apologize for bringing this up again as I know it's been sort of covered in other places, however I didn't find the situation I am having and I have a question about how to handle it.

I'm using webform 7.x-4.0. There are some conditionally hidden fields on the form. However, I need all the fields to show up in the submitted data table because I export them to a tracking database, which can't handle when some fields don't exist.

Is there a way I can make it so all fields in my form, even those that are conditionally hidden, will show up in the submitted data table, even if they are empty?

Thanks.

Comments

DanChadwick’s picture

Status: Active » Fixed

I would not rely on this behavior. Fields that are hidden by conditional may at times be there and may at times be empty. (Note that the column is still there, but empty.)

The intended behavior (which is not the current behavior, I believe) is to include the fields when the submissionis a draft, and then remove them when it is complete. This allows the draft to be edited and if they user changes his/her mind and changes to form, the already-entered values that were previously hidden will be shown. Once the form is submitted (i.e. complete), the irrelevant data will be removed.

I suggest that you handle this somewhere between webform and your tracking database. I also suggest you update to the latest stable webform, which at this time is 4.1.

Status: Fixed » Closed (fixed)

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