Menu

Required Radio buttons?

Help
SteveC
2009-06-28
2013-06-03
  • SteveC

    SteveC - 2009-06-28

    Hello, I have a form where the user needs to choose if they are attending an event by choosing either yes or no from a set of two radio buttons. When I generated the form, I chose to make that required, but it seems to not be working as people are submitting the form without choosing yes or no. Any ideas on how to correct this? Thanks in advance for any help!

     
  • Howard Canning

    Howard Canning - 2010-02-27

    Any ideas on this question guys?

     
  • Anonymous

    Anonymous - 2010-03-16

    Try this but change the field_14 to the name of your radio button area and change fieldBox_14 to the id of your radio button li class. I hope that makes sense. The 2 means that there are 2 radio buttons.

    if (validateRadio('field_14','fieldBox_14','radio',2,1) == false)
    retVal=false;

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.