Problem with implementing html code in ChronoForms

plastic 26 Apr, 2009
Hi,

First of all, thank you for creating such a powerful tool. My overall impression of this component is very good.

I created a few simple forms using the wizard and that worked fine. I am now in the process of creating a more advanced form and have used DreamWeaver to generate the HTML code. I do not have a web designer background so it is probably very easy to fix the issue.

Everything seems to work fine except for two things; radio groups and check box groups. I'll post the details for a radiogroup which should identify a color: Red, Blue or Green:

HTML code from DreamWeaver:
<p>Color:<br />
    <label>
      <input type="radio" name="Color" value="radio" id="Color_0" />
      Red</label>
    <label>
      <input type="radio" name="Color" value="radio" id="Color_1" />
    Blue</label>
    <label>
      <input type="radio" name="Color" value="radio" id="Color_2" />
    Green</label>
  </p>


Email template in ChronoForms:

Color:
{Color} Red {Color} Blue{Color} Green



How the email results look like:

Color:
Red Blue Green



As you can see, the email results show Red Blue Green, even if only one of the radio buttons has been selected.

Could anyone point me in the right direction?

Thanks for your help and time!
GreyHead 26 Apr, 2009
Hi Plastic,

Set the button values to the results you want to show
<p>Color:<br />
    <label>
      <input type="radio" name="Color" value="Red" id="Color_0" />
      Red</label>
    <label>
      <input type="radio" name="Color" value="Blue" id="Color_1" />
    Blue</label>
    <label>
      <input type="radio" name="Color" value="Green" id="Color_2" />
    Green</label>
  </p>
then change the template to
Color: {color}

Bob
plastic 26 Apr, 2009
Thank you for your quick reply Bob, I did a quick check and it seems to work. Going to implement it to the entire form now.
This topic is locked and no more replies can be posted.