Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
Chris Dart #1
Yaromat Check Form - Value in at least one of multiplecheck boxes
I need to force that at least one or more of multiple Check boxes be selected.
Radio boxes can be set to any one selected and Yaromat Check Form can control
that, but it does not seem to control that at least one or more of a set of
Check Boxes are set. The checkboxes take this form:
<input name="number" type="checkbox" id="number" value="1">
<input name="number" type="checkbox" id="number" value="2">
etc
Any Ideas please?
Chris Dart
Chris Dart Guest
-
PDF form check boxes not highlighting from page to page
Hello forum users > I have been creating editable PDF forms with Acrobat 7.0 and have come across an issue that I cannot solve. If you tab through... -
Validate expiry date in Yaromat Check Form
I use Yaromat's Check Form extension on all of the forms I've created. On our secure payment forms, there are 2 select boxes - one for month and one... -
Yaromat Check Form MX
I go through doing all the checking - tells me my (all) fields are invalid (what does that mean?). I have radio groups, and am telling all the... -
yaromat check form email validation
I need to be sure that a valid email address has been submitted, but if the email address contains an underscore ( _ ), checkform considers this to... -
yaromat validate form
Can't really help, except to say it works on my xppro using dwmx - sorry :) Maybe uninstall and reinstall using the extension manager and see if... -
kdpowell #2
Re: Yaromat Check Form - Value in at least one of multiplecheck boxes
This answer assumes you already have the Javascript on the page for validation with Yaromat.
Find these two lines:
if (addErr){myErr+='* '+args[i+3]+'\n'; addErr=false}
}
BELOW IT add this:
/* has to have at least one checkbox selected */
/* NOTE: in this example each checkbox in my checkbox group is named STUDENT_NUMBER */
var x = document.getElementsByName("STUDENT_NUMBER");
var okay=false;
for (i = 0; i < x.length; i++)
{
var fld = x[i];
if (fld.checked == true)
{
okay=true;
break;
} else {
addErr=true
}
}
/* add the error message for your checkboxes here. Of course, yours will be different. */
if (!okay){myErr+='* Please select a STUDENT\n'; okay=false}
/* The next lines are the very end of the function YY_checkform() function and should remain the same. Your checkbox code (above) must be added BEFORE this ending of the function */
if (myErr!=''){alert('The required information is incomplete or contains errors:\t\t\t\t\t\n\n'+myErr)}
document.MM_returnValue = (myErr=='');
}
*/ this marks the end of the function YY_checkform() */
kdpowell Guest



Reply With Quote


