Forums

Check Box values do not show correctly in email

mindmechanics 19 Mar, 2009
Hi,

I created a form using the wizard (latest version). In it I have two check box areas with multiple items. In the email with results I always get the same text, no matter which box is checked.

Any ideas how this can be corrected?

Thanks!

Here's what I get in the mail - no matter which box is ticked:

I would like:
an on-line demo an on-line demo
an on-line demo more written information
an on-line demo to try the software



Here's the mail template:
I would like:
{check1} an on-line demo
{check1} more written information
{check1} to try the software 


And this is the code:
<div class="form_item">
  <div class="form_element cf_checkbox">
    <label class="cf_label">I would like:</label>
    <div class="float_left">
      <input value="an on-line demo" class="radio radio radio radio radio radio radio radio" id="an_on-line_demo" name="check1[]" type="checkbox" />
      <label for="an_on-line_demo" class="check_label">an on-line demo</label>
      <br />
      
<input value="more written information" class="radio radio radio radio radio radio radio radio" id="more_written_information" name="check1[]" type="checkbox" />
      <label for="more_written_information" class="check_label">more written information</label>
      <br />
      
<input value="to try the software" class="radio radio radio radio radio radio radio radio" id="to_try_the_software" name="check1[]" type="checkbox" />
      <label for="to_try_the_software" class="check_label">to try the software</label>
      <br />
      

    </div>
    
  </div>
  <div class="clear"> </div>
</div>
GreyHead 20 Mar, 2009
Hi mindmechanics,

In the email template replace this
I would like:
{check1} an on-line demo
{check1} more written information
{check1} to try the software 
with
I would like: {check1}

Bob
bobanmak 20 Mar, 2009
usefull🙂
you saved me
sophy978 06 Apr, 2009
Hi,

I'm not sure why my checkboxes aren't working? I used the wizard to the create the form. On my email confirmations - no options are showing up.

The code is
<DIV class=form_item   >
<DIV class="form_element cf_checkbox" ><LABEL class=cf_label >By checking these options I agree to: </LABEL>
<DIV class=float_left ><INPUT class=radio id="Pay_For Shipping Costs Both Ways (Must Be Insured)"  type=checkbox value="Pay For Shipping Costs Both Ways (Must Be Insured)" name="Pay_For Shipping Costs Both Ways (Must Be Insured)" ><LABEL class=check_label for="Pay_For Shipping Costs Both Ways (Must Be Insured)" >Pay For Shipping Costs Both Ways (Must Be Insured)</LABEL><BR >
<INPUT class=radio id="Have_Proof Of Insurance On File"  type=checkbox value="Have Proof Of Insurance On File" name="Have_Proof Of Insurance On File" ><LABEL class=check_label for="Have_Proof Of Insurance On File" >Have Proof Of Insurance On File</LABEL><BR >
<INPUT class=radio id="Be_in Good Payment Standing"  type=checkbox value="Be in Good Payment Standing" name="Be_in Good Payment Standing" ><LABEL class=check_label for="Be_in Good Payment Standing" >Be In Good Payment Standing</LABEL><BR ></DIV></DIV>
<DIV class=clear > </DIV></DIV>
<DIV class=form_item   >
<DIV class="form_element cf_button" ><INPUT  type=submit value=Submit ></DIV>
<DIV class=clear > </DIV></DIV>


The email template is:

By checking these options I agree to:
{Pay_For Shipping Costs Both Ways (Must Be Insured)}
{Have_Proof Of Insurance On File}
{Be_in Good Payment Standing}



My Email result:
'By checking these options I agree to: '

Can you Help?
Max_admin 07 Apr, 2009
Hi Sophy,

I strongly suggest you upgrade to V3.1 RC4 then we can fix this, it will be very helpful for your future forms too!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
nml375 07 Apr, 2009
Hi sophy,
Keep in mind that you may not have any spaces in your field names. Use underscore ( _ ) instead.
sophy978 08 Apr, 2009
Hi Max and nml375,

I've upgraded to V3.1 RC4.
I've also used the '_' in place of the spaces. The results are the same in V3.1 RC3 and V3.1 RC4.

The form code is the still the same.
The email template is now:

By checking these options I agree to:
{Pay_For_Shipping_Costs_Both_Ways_(Must_Be_Insured)}
{Have_Proof_Of_Insurance_On_File}
{Be_in_Good_Payment_Standing}



Now which ever option or options I choose, the result is the option is shown without the '{ }'. So for example if I chosed the first two, the email result is:

By checking these options I agree to:
Pay For Shipping Costs Both Ways (Must Be Insured)
Have Proof Of Insurance On File
{Be_in_Good_Payment_Standing}



Can you help? Thanks.
Max_admin 09 Apr, 2009
Hi Sophy,

indeed the fixes will be available when you recreate the form, or the elements, if your form is small then you may remake it quickly again, or just create another small form with only a group of checkboxes and test the result first, if you like it then you can copy the code from the test form to the old one! you can post any questions here when you are at this step!🙂

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.