If and checkboxes - Auto checking a checkbox once 2 others are checked
The below statment will not check my checkbox3 once checkbox1 && checkbox2 are checked it will only work with the || (or) statement, what am I doing wroung?
Document Level Control
function cbControl() {
// Get a reference to each check box
var f1 = getField("checkbox1");
var f2 = getField("checkbox2");
var f3 = getField("checkbox3");
// Check cb3 if cb1 and cb2 was selected
if (event.target === f1 && event.target === f2)
{ f3.value = "Yes"; return; }
}
Mouse Up Event on each checkbox
cbControl();
