When a question isn't required, it shouldn't have the required-rule. Jörn
On Mon, Aug 24, 2009 at 1:43 PM, Gordon<grj.mc...@googlemail.com> wrote: > > I'm working on a survey builder that lets people generate web forms > for collecting user data. Form builders can create forms with various > controls on them. > > At the moment I'm building in a jQuery validate layer (there is also a > server side validation layer, but I want to keep users from making > unnecessary submits). I've run into a little problem with radio > buttons though. > > If I have radio buttons that all have values (<input type="radio" > name="radioQuestion" value="1">, <input type="radio" > name="radioQuestion value=2">, etc) then if I set up a required:true > rule and try to submit I get a validation error as expected. However, > if there's a radio with no value in the group, such as <input > type="radio" name="radioQuestion" value=""> then if the radio with no > value is selected, the validation check is passed. > > Is there a way around this, other than simply not including a radio > button with no value? I'd want this for questions that aren't set > required.