I have searched the posts and tried the code, but I am missing something.
My Grouped Radio Buttons have JavaScript on Mouse Down
this.getField("Yes").value = "1"
this.getField("No").value = "2"
this.getField("NA").value = "3"
My Text Fields has JavaScript for Custom calculation script. The Yes and 1 are changed to No and 2, and NA and 3 for their respective text field.
(function () {
var i, val, sum = 0;
for (var i = 1; i <= 48; i ++) {
val = getField("Group" + i).getField("Yes").value;
if (val == "1") {
sum += +val;
}
}
event.value = sum;
})();