radio buttons validation problem

Help
2004-06-20
2004-06-21
  • george martignoni

    I need to make sure that one is checked, but no javascript validation code is generated on the form only for radio buttons, everything else is working:
    $f->add_element(array(
                          "type"=>"radio",
                          "name"=>"radioPubName",
                          "valid_e"=>"Please select if you want your name published or not"
                          ));
    anyone had the same problem ? anyone using radio buttons validation successfully ?
    Thanks !!

     
    • Layne Weathers

      Layne Weathers - 2004-06-21

      I don't use OOH Forms much and haven't looked at the code, but it is possible that the authors did not implement Javascript validation on radio buttons due to insufficient browser support. As of early 2004, IE 6 and Mozilla browsers (tested 1.4 and up) support javascript validation of radio elements - Opera and KHTML family browsers do not. When OOH Forms was written, IE and/or Mozilla may not have supported radio element validation.

      I only will implement radio element validation on intranet sites where use of IE or Mozilla is enforced. The support is not broad enough in my opinion for public sites.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks