Closed (fixed)
Project:
Webform
Version:
5.x-2.6
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2009 at 16:07 UTC
Updated:
23 Apr 2010 at 18:40 UTC
Hi.
I've searched before posting...
I have a quite large webform with about 30 optional fields with numbers. When browsing individual submissions, fields that were not filled and thus remain blank or with default value (0 in my case) are not important for me.
I'd like to only see fields with relevant (non-zero) values and hide the rest - or sort the fields by their values so the fields with 0 would be at the bottom. Otherwise it's very easy to overlook non-zero value in the webform when evaluating it. Is there a way to do this?
I tried to install webform_reports module but failed to produce the desired effect with it.
Thank you.
Comments
Comment #1
charmer commentedOk, so I learned that I need to use webform Additional Processing to filter the results. However I still have a small issue. I have small testing form that looks like this when dumped:
array(7) { ["submitted"]=> array(3) { [1]=> string(3) "555" [2]=> string(1) "0" [3]=> string(1) "0" } ["details"]=> array(4) { ["email_subject"]=> string(1) "1" ["email_from_name"]=> string(1) "1" ["email_from_address"]=> string(7) "default" ["nid"]=> string(1) "4" } ["op"]=> string(6) "Submit" ["submit"]=> string(6) "Submit" ["form_token"]=> string(32) "27317820a3d3082a8cdfb2e7b6c2c998" ["form_id"]=> string(21) "webform_client_form_4" ["submitted_tree"]=> array(3) { ["otazka_1"]=> string(3) "555" ["otazka_2"]=> string(1) "0" ["otazka_3"]=> string(1) "0" } }i.e. three form fields with values "555", "0", "0".
The following piece of code is supposed to filter out fields with value of "0":
var_dump looks good, zero values are filtered out, but form submission still contains all fields. I tried to replace submitted with submitted_tree but still to no avail.
Can anyone please help me to nail down this thing? Thanks in advance.
Comment #2
k3vin commentedcharmer, as i know there isn't a possiblity to hide blank fields in results e-mail notifications. I have the same problem too and I think this is a new feature request.
Comment #3
brnnrc commentedsubscribe
Comment #4
mattcasey commentedsubscribe!
Comment #5
quicksketchThis has already been answered at #347361: empty fields not to be included in e-mail.
Comment #6
mattcasey commentedthanks quicksketch, i appreciate your regularly prompt support with this module!