Forums

Help needed regarding radio buttons

sameer_mhatre512 30 Oct, 2008
Hello Greg,
I am making use of chornoforms in the following site http://nitrotraining.com.au/index.php?option=com_chronocontact&chronoformname=ContactUs&Itemid=77
the problem i am facing is this.
i had made used of radiobuttons for the field Preferred contact method . it stores the data correctly only the issue is the email i get doesnt contain the proper method .
i get following thing in email

. . .
Preferred contact method {radiobutton} Phone {radiobutton} Email {radiobutton} Post {radiobutton} Fax
Type your enquiry here: 4646



Attached here with is the backup of the form. can you please help me with the same.

thanks
sameer
GreyHead 30 Oct, 2008
HI sameer_mhatre512,

You need to set different values for the button but keep the name the same:
<td class="style5" width="94" valign="top" align="left">
<input type="radio" value="phone" name="Preferredcontact"/>
<span class="form_text">Phone</span>
</td>
<td class="style5" width="84" valign="top" align="left">
<input type="radio" value="email" name="Preferredcontact"/>
<span class="form_text">Email </span>
</td>
<td class="style5" width="77" valign="top" align="left">
<input type="radio" value="post" name="Preferredcontact"/>
<span class="form_text">Post</span>
</td>
<td class="style5" width="126" valign="top" align="left">
<input type="radio" value="fax" name="Preferredcontact"/>
<span class="form_text">Fax </span>
</td>

Bob
sameer_mhatre512 31 Oct, 2008
Hello Greg,
I tried using the method you suggested but didnt find it working 😟 .attached herewith is the form.can you please help me out.

thanks
Sameer
GreyHead 31 Oct, 2008
Hi Sameer,

You've changed the field name in the Form HTML but not in the template - they both need to be the same e.g. Preferredcontact. Then put this in the email template:
<tr>
<td class="style5" align="left" valign="top">
<div><span class="form_text">Preferred contact</span><span class="form_text"> method</span></div>
</td>
<td class="style5" width="94" align="left" colspan='4' valign="top"><span class="form_text">{Preferredcontact}</span></td>
</tr>
Note that you only need one result not four.

Bob
This topic is locked and no more replies can be posted.