Forums

Value of radiobutton isn't in the mail ?

sindb 11 Mar, 2009
Dear,

I have a website where you can become a member. I have three kinds of membership.
Therefore I'll use radio buttons because they can be only one kind of member.
http://www.bijverdienenviathuiswerk.be/index.php?option=com_chronocontact&Itemid=72

I've read a lot of topics here and I think that the php code should be modified:
<div class="form_item">
<div class="form_element cf_radiobutton">
<label class="cf_label">Lidmaatschap *</label>
<div class="float_left">
<input value="Shopper" class="radio radio validate-one-required" id="Shopper" name="radio0" type="radio" />
<label for="Shopper" class="radio_label">Shopper</label>
<br />
<input value="Associate Member" class="radio radio validate-one-required" id="Associate_Member" name="radio0" type="radio" />
<label for="Associate_Member" class="radio_label">Associate Member</label>
<br />
<input value="VIP" class="radio radio validate-one-required" id="VIP" name="radio0" type="radio" />
<label for="VIP" class="radio_label">VIP</label>
<br />
</div>


The result in the mail I receive is:

{check0} Shopper
{check0} Associate Member
{check0} VIP


So it doesn't show which one has been selected ?

What am I doing wrong ?

TIA

regards,
sindb
GreyHead 11 Mar, 2009
Hi sindb,

If you 've renamed or changed the fields from check0 to radio0 then you'll need to make the corresponding changes in the email template. Or, if you have v3.1, you can delete all content from the template and let ChronoForms re-create it from scratch.

Bob
sindb 11 Mar, 2009
Hi Bob,

thanks for your reply🙂

First I used checkbox's but then I realised that only one option could be possible.
So I removed this checkbox and replaced this with radiobuttons in my form.
I don't know if it's normal that my email template didn't change from check into radio
but I should have know better that (check0) doesn't match with a radiobutton.
So I've changed my email template but now I get this in my mail with option Associate Member selected:

Associate Member Shopper
Associate Member Associate Member
Associate Member VIP


Is this normal that I see this 3 times + the 3 options behind ?
Am I still doing something wrong ?

I changed the form after I created the table, could this be the problem ?
If so, how can I solve this please ?

You mention "ChronoForms re-create it from scratch" in v3.1, I have Chronoforms V3.1 RC2 so is this also possible in this version ?
If yes, this re-create is this by going step by step through the wizard ?

TIA
sindb
GreyHead 11 Mar, 2009
Hi sindb,

If yes, this re-create is this by going step by step through the wizard ?



No, no, no - just delete everything from the Email template box and ChronoForms will create a new template when you save (if there is *anything* in the box - even an empty div - this won't work).

Bob
sindb 11 Mar, 2009
Hi Bob,

I have deleted everything from the Email template box and did a save in the "Wizard Edit" of my existing form but this Email template stays empty ?
Does it take sometime or is something going wrong ?

TIA
sindb
GreyHead 11 Mar, 2009
Hi sindb,

Try sending a test email.

Bob
sindb 11 Mar, 2009
Hi Bob,

this is the result of the test email:

Bericht

* Form passed first SPAM check OK
* Form passed the submissions limit (if enabled) OK
* Form passed the Image verification (if enabled) OK
* Form passed the server side validation (if enabled) OK
* Form passed the plugins step (if enabled) OK
* Emails data loaded OK
* Form passed all before email code evaluation OK
* An email has been SENT successfully from (Bijverdienen via thuiswerk)sindb.t@example.com to [email]sin.db.gm@example.com[/email]
* Debug End

_POST: Array ( [Voornaam] => Thierry [Familienaam] => Van den Neucker [Email] => [email]sin.db.dhs@example.com[/email] [Straat] => Grote Heimelinkstraat [huisnummer] => 114 [Postcode] => 9100 [Plaats] => Sint-Niklaas [Provincie] => Oost-Vlaanderen [Land] => België [Telefoon] => 0473/78.38.30 [radio0] => Associate Member [Opmerking] => AM [chrono_verification] => uZx4B [0b7b7d94eeca2974aad285a0aeae070c] => 1 )
E-mail message

From: Bijverdienen via thuiswerk [sindb.t@example.com]
To: [email]sin.db.gm@example.com[/email]
Subject: DHS inschrijfformulier





Submitted by 81.82.2.11



I did the test as describe in the maunal "3 Adding emails to a form in ChronoForms.pdf"

But as you can see the mail stays empty ?

regards,
Thierry
GreyHead 11 Mar, 2009
Hi sindb,

This really should reset the template. Let's try once more, in the template editor, check the html button and make sure that there is nothing - or better, turn the HTML editor off in the Email setup and then check,

Bob
sindb 11 Mar, 2009
Hi Bob,

in Setup Mails I have these settings now:

Email Format: Plain Text
Record IP: Yes
Enabled: Yes
Use Template Editor: Yes

but still no EMail Template ?

* Form passed first SPAM check OK
* Form passed the submissions limit (if enabled) OK
* Form passed the Image verification (if enabled) OK
* Form passed the server side validation (if enabled) OK
* Form passed the plugins step (if enabled) OK
* Emails data loaded OK
* Form passed all before email code evaluation OK
* An email has been SENT successfully from (Bijverdienen via thuiswerk)sindb.t@telenet.be to [email]sin.db.gm@gmail.com[/email]
* Debug End

_POST: Array ( [Voornaam] => Thierry [Familienaam] => Van den Neucker [Email] => [email]sin.db.dhs@gmail.com[/email] [Straat] => Grote Heimelinkstraat [huisnummer] => 114 [Postcode] => 9100 [Plaats] => Sint-Niklaas [Provincie] => Oost-Vlaanderen [Land] => België [Telefoon] => 0473/78.38.30 [radio0] => Associate Member [Opmerking] => option is AM [chrono_verification] => qeQtr [daf7b32e8f5376a11e0871d444936157] => 1 )
E-mail message

From: Bijverdienen via thuiswerk [sindb.t@telenet.be]
To: [email]sin.db.gm@gmail.com[/email]
Subject: DHS inschrijfformulier
Submitted by 81.82.2.11


Should I remake this form from ground zero then ?

Thanks for your help Bob🙂
GreyHead 11 Mar, 2009
Hi sindb,

Before you re-make it, please email or PM me a Super Admin logon so that I can take a look.

Bob
sindb 12 Mar, 2009
Hi Bob,

I did what you told me to do:

I though that Max had fixed this in the latest release. In the template replace

Lidmaatschap *
{radio0} Shopper
{radio0} Associate Member
{radio0} VIP

with
Lidmaatschap {radio0}

PS The template should be re-written as soon as the form is saved, nothing happens at any other time.


Everything is working perfect now 😀
Thanks Bob for your help 🤣

Bob,

is there a possibility to put a checkbox so the surfer is able to email this to himself if he wants ?

regards,
sindb
This topic is locked and no more replies can be posted.