Answered
I have created a form with several "yes" and "no" answers using radio buttons. At the bottom of the form I wanted to add a "read-only" field that is automatically calculated based on all the "no" answers. Specifically, I would like to do the following:
Have a field at the bottom of the form that calculates the total number of "no" (radio button) answers. This field would be "read-only" so the user completing the form cannot change it.
Any help?!?! PLEASE!!!
Assuming you named all your radio button groups "RadioButtonList" and the value for no is "2", you will have a calculation script for the number field like:
var Count = 0 // clear count
if(RadioButtonList[0].rawValue == 2) then Count = Count + 1 // check group 1
endif
if(RadioButtonList[1].rawValue == 2) then Count = Count + 1 // check groupe 2
endif
$.rawValue = Count // report total
George Kaiser