Forums

Newbie question about radio buttons!

labanino 06 Sep, 2010
Hello guys! I have a little issue. In my form I have:
<label class="cf_label">* Do you like Ice cream?</label>
      <input value="Yes" title="Required" class="radio validate-one-required" id="radio00" name="icecream_1" type="radio" />
      <label for="radio00" class="radio_label">Yes</label>
      <br />
      <input value="No" title="Required" class="radio" id="radio01" name="icecream_2" type="radio" />
      <label for="radio01" class="radio_label">No</label>


After submitting the form I get this:

Do you like Ice cream? {icecream}



I know the problem is with my email template because it's more than one value.

What do I have to do to get the value, yes or no? Any help? Thanks. 😟
GreyHead 06 Sep, 2010
Hi labanino,

Give both radio buttons the same name name='icecream' Then they form a radio button group and only one value can be submitted.

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