What would be the best way to count all submissions (True & False) of a radio button type in a web form?
There are about 100 radio buttons in each survey form so need to get a total number of True values
If you want do the number count after submit is done
It will give you the most complete Analysis of your form.
This pulls all submissions and results
SELECT
webform_submitted_data
.sid
,
webform_submitted_data
.data
,
webform_component
.type
,
webform_component
.form_key
,
webform_component
.name
FROM
webform_submitted_data
INNER JOIN
webform_component
ON (webform_submitted_data
.cid
= webform_component
.cid
)
WHERE
webform_submitted_data
.sid
= :sid AND
webform_component
.type
= 'select'
GROUP BY
webform_component.form_key