If we assume that the Default value of your unchecked checkbox is zero, in the click/change event of the checkbox you can total the value of the checkboxes and divide it by 2.
Var total = (CheckBox1.rawValue + CheckBox2.rawValue+ CheckBox3.rawValue + ....) / 2
Thanks for replying, but I do not always want it to divide by 2, that was just an example. I want it to divide by however many check boxes might be checked. So it could be 2 it could be 7 just depending on what is checked.
Well, then in that case you can use another variable for dividing instead of 2.
Lets say var divider. Then set the value, then divide.
You can have one hidden text feild and increase the rawValue as per check box selection.
if(CheckBox1.rawValue == true)
TextFeild1.rawValue = 1;