Answered
help with code
if(this.getField("field").checkThisBox(0, event.value=="4/8"));How do I make it check the checkbox even if values are "5/8","6/8","7/8" and "8/8"?
if(this.getField("field").checkThisBox(0, event.value=="4/8"));How do I make it check the checkbox even if values are "5/8","6/8","7/8" and "8/8"?
You can combine both functions into a single calculation script, like this:
var v1 = this.getField("field1").valueAsString;
var f = this.getField("checkbox");
if (v1 == "4" || v1 == "5" || v1=="6" || v1=="7" || v1=="8") {
f.checkThisBox(0, true);
} else f.checkThisBox(0, false);
event.value = v1 + "/8";Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.