troubleshooting Question

Pass radio button values to mailto body?

Avatar of Andrew
AndrewFlag for United States of America asked on
JavaScriptASP
2 Comments1 Solution897 ViewsLast Modified:
Hello, can someone help me to figure out how to add the value of a set of radio buttons in a form to a mailto button onclick?  It works if I try a textbox value in the same form, but passes "UNDEFINED" when I try to pass the radio button value.

<form class="formular" id="DonateForm" name="DonateForm" method="post" action="GCP21Reg.asp">
	<table style="width: 100%;">
          <tr>
			<td class="FormSectionRows" colspan="2">
            <input type="radio" id="S1" name="AbsCat" value="S1" />S1 Biodiversity and Genetic Resources<br/>
            <input type="radio" id="S2" name="AbsCat" value="S2" />S2 Climate and Social Changes Impacting Cassava<br/>
            <input type="radio" id="S3" name="AbsCat" value="S3" />S3 Genomics and Gene Discovery Platforms<br/> 
            <input type="radio" id="S4" name="AbsCat" value="S4" />S4 Agronomy (Cassava Field Production)<br/>
            <input type="radio" id="S5" name="AbsCat" value="S5" />S5 CBSD and CMD and CBB<br/>
            <input type="radio" id="S6" name="AbsCat" value="S6" />S6 Enabling Transgenic and In vitro Technologies (includes haploids)<br/>
            <input type="radio" id="S7" name="AbsCat" value="S7" />S7 Physiology and Abiotic stress (includes PPD)<br/>
            <input type="radio" id="S8" name="AbsCat" value="S8" />S8 Modern Breeding (includes MAS, heterosis, transgenics)<br/>
            <input type="radio" id="S9" name="AbsCat" value="S9" />S9 Field Breeding<br/>
            <input type="radio" id="S10" name="AbsCat" value="S10" />S10 Metabolic Engineering (includes starch, biofuels, nutritional enhancement)<br/>
            <input type="radio" id="S11" name="AbsCat" value="S11" />S11 Cassava Delivery Chain<br/>
            <input type="radio" id="S12" name="AbsCat" value="S12" />S12 Cassava Value Chain<br/>
            <input type="radio" id="S13" name="AbsCat" value="S13" />S13 Cassava Genomics Workshop<br/>
            </td>
		</tr>
<tr>
			<td class="FormSectionRows" colspan="2" ><input id="Button1" type="button" value="Submit Abstract" onclick="parent.location='mailto:pcosgrove@danforthcenter.org?subject=GCP21 Abstract Submission&body='+DonateForm.AbsCat.value+''" /></td>
		</tr>
</table>
</form>


TIA,
Andrew
ASKER CERTIFIED SOLUTION
Big Monty
Web Ninja at large

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros