Forums

Radio buttons default created form, email template

sunlust 25 Feb, 2009
Hi,

I've setup the form using the wizard,

The radio buttons code:
<DIV class="form_item" ><DIV class="form_element cf_heading"><H2 class="cf_text" id="null">Request a Quote</H2></DIV><DIV class="clear"> </DIV></DIV>
<DIV class="form_item" ><DIV class="form_element cf_radiobutton"><LABEL class="cf_label">Required</LABEL><DIV class="float_left"><INPUT name="radio0" id="Commercial_EPC0" class="radio validate-one-required" type="radio"><LABEL class="radio_label" for="Commercial_EPC0">Commercial EPC</LABEL>
<BR><INPUT name="radio0" id="Residental_EPC0" class="radio" type="radio"><LABEL class="radio_label" for="Residental_EPC0">Residental EPC</LABEL>
<BR><INPUT name="radio0" id="DEC0" class="radio" type="radio"><LABEL class="radio_label" for="DEC0">DEC</LABEL>
<BR><INPUT name="radio0" id="Fire_Safety Assessment0" class="radio" type="radio"><LABEL class="radio_label" for="Fire_Safety Assessment0">Fire Safety Assessment</LABEL>
<BR></DIV><A class="tooltiplink" onclick="return false;"><IMG class="tooltipimg" src="components/com_chronocontact/css/images/tooltip.png" border="0"  width="16" height="16"></A><DIV class="tooltipdiv" >Required :: Please choose one</DIV></DIV>


The email template code:
div class="form_item">
<div class="form_element cf_heading">
<h2 id="null" class="cf_text">Request a Quote Form</h2>
</div>
</div>
<div class="form_item"><label class="cf_label"> Type</label>{radio0}</div>
<div class="form_item">
<div class="form_element cf_textbox"><label class="cf_label">Property type: </label><span>{text_2}</span></div>
</div>
<div class="form_item">
<div class="form_element cf_radiobutton"><label class="cf_label">Size measured in: </label><span>{radio4}</span><br /><br /></div>
</div>


Now, I have no idea why but no matter which radio button I click all I get is "on"

So my email looks like this:

Typeon
Property type: sdadsa
Size measured in: on 


Any ideas on how to fix it? I just need an edge, I'm really weak with forms...
GreyHead 25 Feb, 2009
Hi sunlust,

Add value attributes to the radio inputs
<INPUT name="radio0" id="Commercial_EPC0" class="radio validate-one-required" type="radio" value='Commercial EPC0' >

Bob
sunlust 25 Feb, 2009
Thanks a lot Bob, I'll check it out tomorrow morning as now I'm leaving the office.
Max_admin 25 Feb, 2009
Hi sunlust,

whats your Chronoforms version ?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
sunlust 26 Feb, 2009
The version is 3.0 STABLE

@GreyHead Thanks a lot! It worked, now the form is functional

Another question, did anyone experience problems with uploading files through Internet Explorer 6?
Or is it just because I'm using a Virtual PC?
Max_admin 26 Feb, 2009
there should be no problems with any browser for uploads!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 27 Feb, 2009
Hi Sunlust,

I've no idea about uploads with a Virtual PC - where do the files get written too? It should be OK if the permissions are good I suppose.

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