Values from radio buttons not being recorded
Posted: 15 July 2008 02:51 PM   [ Ignore ]
Newbie
Rank
Total Posts:  11
Joined  2006-06-07

Hi, I’ve seen a couple of folks on the forum with similar problems, but I can’t seem to use their fixes. Here’s the scoop:

This page (seriously under construction) http://www.thefrisky.com/site/hotness-ballot/ uses the following code:

{exp:freeform:form form_name="hotnessVotes" form_class ="hotnessNominations" return=""}
 
 
<h2 style="text-align:center;margin-bottom:10px;_height:40px">I HEREBY NOMINATE THE FOLLOWING HOTNESS:</h2>

 <
div class="hotnessNominationsRow">
  <
p>1. Hottest Actress</p>
  <
input type="radio" name="voteHottestActress" value="Candidate 1" /> Candidate 1<br />
  <
input type="radio" name="voteHottestActress" value="Candidate 2" /> Candidate 2<br />
  <
input type="radio" name="voteHottestActress" value="Candidate 3" /> Candidate 3<br />
  <
label>Hottest Actress:</label> <input type="text" name="voteHottestActress" value="" class="hotnessNominationField" />
 </
div>
 </
div>

 <
p style="margin-left:380px;_margin-left:330px;font-size:115%;">
 <
input type="submit" name="submit" value="Submit Nominations" />
 </
p>

 
{/exp:freeform:form}

I have created the field voteHottestActress. If I enter data into the text field, it is recorded. So it’s only the radio buttons that are a problem.

*EDIT* Forgot to mention this is on ee 1.6.3

Profile
 
 
Posted: 15 July 2008 03:12 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

EDIT

Do you have both the Radio Fields and the Input Field present at the same time, or was this just for an example?

 Signature 
Profile
 
 
Posted: 15 July 2008 03:21 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  11
Joined  2006-06-07

Hi - yes, they’re both present. That said, I’ve removed the text input field, and the data from the radio buttons is still not being recorded.

Profile
 
 
Posted: 16 July 2008 07:02 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

You should also be using the short_name of the field… most likely:

votehottestactress

smile
 Signature 
Profile
 
 
Posted: 16 July 2008 07:18 AM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  11
Joined  2006-06-07

Thanks, think I sorted it out!

Profile