Dear Users,
I am trying to validate 4 radio groups (YES/NO) and get user to select at least one YES, doesnt matter which one. I am using a Spry Validation from Dreamweaver + the function listed below, but when I use this function the Spry Validation doesnt work, I think so I need to rebuild attached file (please change txt for js)
function validate(f) {
if(!f.RadioGroup1[0].checked && !f.RadioGroup2[0].checked) {
alert('Please select at least one Yes');
return false;
}
return true;
}
I think so this is the place inside the Spry file to make a changes but I am ot quite sure how to make it
// check isRequired
if (this.isRequired && (nochecked == 0 || required != 0))
{
this.addClassName(this.element, this.requiredClass);
this.addClassName(this.additionalError, this.requiredClass);
return false;
}
this.addClassName(this.element, this.validClass);
this.addClassName(this.additionalError, this.validClass);
return true;
};


