So, the checkboxes in each row are mutually exclusive? And these hidden values are actually the exports for the checkboxes?
I would add a group name to the existing checkbox name. Assuming the names of the check box rows are "CkRow1" "CkRow2" etc. then the grouped names would be "Grp.CkRow1" "Grp.CkRow2" etc.
This code placed in the calculation script for a text field will produce the average.
var aChecks = this.getField("Grp").getArray();
var sum = 0;
aChecks.forEach(function(a){sum+=a.value;});
event.value = sum/aChecks.length;
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often