Hi everyone,
I have a form with a few checkboxes. Its very basic, name address, phone etc. At the end of the form There are 2 questions with checkboxes. The first question has 4 options, the second question has 2 options. However, the generated email is sending this regardless of what is selected by the user:
Solution of Interest
{check00} OPTION 1
{check01} OPTION 2
{check02} OPTION 3
{check03} OPTION 4
Do you have funding in place?
{check10} OPTION 1
{check11} OPTION 2
Here is my email code:
Here is my form code (just the check boxes)
What am I doing wrong?
Thanks!
I have a form with a few checkboxes. Its very basic, name address, phone etc. At the end of the form There are 2 questions with checkboxes. The first question has 4 options, the second question has 2 options. However, the generated email is sending this regardless of what is selected by the user:
Solution of Interest
{check00} OPTION 1
{check01} OPTION 2
{check02} OPTION 3
{check03} OPTION 4
Do you have funding in place?
{check10} OPTION 1
{check11} OPTION 2
Here is my email code:
Name* {text_0}
Title* {text_1}
Agency* {text_2}
Street Address* {text_3}
City* {text_4}
State* {text_5}
Zip* {text_6}
Phone Number* {text_7}
Email Address* {text_8}
Solution of Interest
{check00} OPTION 1
{check01} OPTION 2
{check02} OPTION 3
{check03} OPTION 4
Do you have funding in place?
{check10} YES
{check11} NO
Comments:
{text_14}
Here is my form code (just the check boxes)
<div class="form_item">
<div class="form_element cf_checkbox">
<label class="cf_label" style="width: 150px;">Solution of Interest*</label>
<div class="float_left">
<input value="OPTION 1" title="" class="radio" id="check00" type="checkbox" />
<label for="check00" class="check_label">OPTION 1</label>
<br />
<input value="OPTION 2" title="" class="radio" id="check01" type="checkbox" />
<label for="check01" class="check_label">OPTION 2</label>
<br />
<input value="OPTION 3" title="" class="radio" id="check02" type="checkbox" />
<label for="check02" class="check_label">OPTION 3</label>
<br />
<input value="other" title="" class="radio" id="check03" type="checkbox" />
<label for="check03" class="check_label">other</label>
<br />
</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_checkbox">
<label class="cf_label" style="width: 150px;">Do you have funding in place*?</label>
<div class="float_left">
<input value="Yes" title="" class="radio" id="check10" type="checkbox" />
<label for="check10" class="check_label">Yes</label>
<br />
<input value="No" title="" class="radio" id="check11" type="checkbox" />
<label for="check11" class="check_label">No</label>
<br />
</div>
</div>
<div class="cfclear"> </div>
</div>
What am I doing wrong?
Thanks!
Hi acaddy,
There are several things here:
All form inputs must have 'name' attributes, yours don't so teh HTML is techncally illegal and probably won't work in ChronoForms which uses the names to identify the inputs.
If you want to have your checkboxes work in groups then all the boxes in a group must share an array name like checkboxes_1[] (they should though have unique ids).
You should set "ChronoForms handle my posted arrays:" in the for General Tab to 'Yes'
In the email template put
Some name: {checkboxes_1}
Bob
There are several things here:
All form inputs must have 'name' attributes, yours don't so teh HTML is techncally illegal and probably won't work in ChronoForms which uses the names to identify the inputs.
If you want to have your checkboxes work in groups then all the boxes in a group must share an array name like checkboxes_1[] (they should though have unique ids).
You should set "ChronoForms handle my posted arrays:" in the for General Tab to 'Yes'
In the email template put
Some name: {checkboxes_1}
Bob
Hi Bob,
Thanks for your help!
I've assigned each input an name and made sure the "ChronoForms handle my posted arrays:" option was set to "Yes".
However, I don't understand arrays. Would you please elaborate a little more?
Thank you!!!
Thanks for your help!
I've assigned each input an name and made sure the "ChronoForms handle my posted arrays:" option was set to "Yes".
However, I don't understand arrays. Would you please elaborate a little more?
Thank you!!!
checkbox's should look like this:
Your email code would look like this:
hth
Rod
<div class="form_item">
<div class="form_element cf_checkbox">
<label class="cf_label" style="width: 150px;">Click Me to Edit</label>
<div class="float_left">
<input value="check 1" title="" class="radio" id="check00" name="check0[]" type="checkbox" />
<label for="check00" class="check_label">check 1</label>
<br />
<input value="check 2" title="" class="radio" id="check01" name="check0[]" type="checkbox" />
<label for="check01" class="check_label">check 2</label>
<br />
<input value="check 3" title="" class="radio" id="check02" name="check0[]" type="checkbox" />
<label for="check02" class="check_label">check 3</label>
<br />
</div>
</div>
<div class="cfclear"> </div>
</div>
Your email code would look like this:
Click Me to Edit: {check0}
hth
Rod
This topic is locked and no more replies can be posted.