Using the xhtml theme, client-side validation for radio button is not
working. I've tried both "required" and "requiredstring" but I suspect that
none will work. The javascript code (from form-close-validation.ftl) does
this:
function validateForm_Question() {
form = document.getElementById("Question");
if (form.elements['q1']) {
field = form.elements['q1'];
var error = "Please answer q1";
if (field.value == "") {
addError(field, error);
errors = true;
}
}
Which doesn't get the actual value of the selected radio. I can code a
workaround in form-close-validation.ftl but it seems like this would have
been solved already?
Mitch Claborn
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]