We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7690
    • 166 Posts
    How can you use radiobuttons in eform?
    I cant mange it to work:

    <tr>
    <td>Aanhef:*</td>
    <td><label for="cfGeslachtMan">Dhr.
    <input name="geslacht[]" id="cfGeslachtMan" type="radio" value="man" eform="Geslacht:::"/></label>
    <label for="cfGeslachtVrouw">Mevr.
    <input name="geslacht[]" id="cfGeslachtVrouw" type="radio" value="vrouw"/></label></td>
    </tr>
      • 30223
      • 1,010 Posts
      "I can’t manage it to work" is too general a statement to be useful.  What is not working? Does it not remember values or does it not get validated when you do not choose a value?

      My bet is that if you change the eform attribute to eform="Geslacht::1" you’ll have more success. This will make the radio field required.
        • 7690
        • 166 Posts
        sorry, i mean that the selected value isnt the the mail that has been sent.

        but is this the correct way to use eform with a radiobutton?
          • 30223
          • 1,010 Posts
          Do me a favour and post ALL relevant information. That is the form template chunk, the report template chunk, the snippet call and anything else you can think of that might help to figure out what’s wrong. (and enclose each in code tags, you can use the # button in the toolbar above for that - it makes your post much more readable)