I had a need to create a poll based off the answers provided in the form. Hope this helps someone else.
Below
Code:
//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
Add
Code:
if ($checkboxanswer1_1 == '' AND $checkboxanswer1_2 == '' AND $checkboxanswer1_3 == '' AND $checkboxanswer1_4 == '' AND $checkboxanswer1_5 == '' AND $checkboxanswer1_6 == '' AND $checkboxanswer1_7 == '' AND $checkboxanswer1_8 == '')
{
$formpoll = "0";
}
else
{
$formpoll = "1";
}
$polloption[1] = "Poll Option 1";
$polloption[2] = "Poll Option 2";
$polloption[3] = "Poll Option 2";
Remove
The above creates a poll if the cited checkboxes are checked.
I haven't tried to use this with entry fields as I was using checkboxes which worked quite well. If someone comes up with other variations for this please post. It may come in handy to others.