Answered
Radio Buttons Based on Text Value in Loop
The following calculation script works to loop through 20 fields and if 5000 value is present, it will check Choice1 (yes) but when it is less than 5000, it won't check Choice2 (no).
var checkboxField = this.getField("CheckBox");
var checkField = false;
for (var i=1; i<=20; i++) {
var num = (i < 10 ? "0" + i : i);
var price = Number(this.getField("Price" + num).valueAsString);
if (price >= 5000) {checkField = true; break;}
}
checkboxField.checkThisBox(0, checkField);
