I have created an InfoPath form that is used for conducting audits. There are several views that contain different audits that can be conducted. For the sake of saving time, I'll only speak on the first view. On this view, I have 6 questions, each having 3 option buttons for answers: Yes, No, and N/A. Yes has a default value of Yes, No=No, and N/A=NA. N/A has been set to default selection on all views. On this view there is a "Calculate Score" button and a "Reset" button and a text box at the bottom that will show Pass or Fail. The "Reset" button will set all options back to N/A. The "Calculate Score" currently has 29 rules associated with it, and I can get it to do most of my calculations, but the problem lies in if someone selects an option and then changes it. The rule(s) will not override what's already on my calculation view. I am sure there has to be an easier way, but right now I just cant seem to think of one.
On my calculation page, I have six field boxes first that are directly linked to each of the six questions. If a question answer is selected yes or no, it puts a value of 1 in the box. If it is selected N/A, it puts a 0 in the box. Below those six field boxes, I have another field box that sums all of the previous six field boxes. This is so I can take that number and divide 100 by it, so I know the weighted score of each question. Questions marked N/A, should not be calculated. Below that line I have six more field boxes (this is where I'm really feeling like I could consolidate somewhere) that if a question is answered Yes, it enters the weighted score that is calculated in that box. Next to these six boxes is a field box that adds up those six boxes. A score of 79 or below is a Fail, and 80 or above is a Pass.
Answering a No to any one, not necessarily all of questions 2, 3, 4, 5, and 6 is an automatic failure; but I would still like for it to calculate a score. With my "Calculate Score" button, if I select all answers one time and do not change my answer, it seems to work. If I go back and change one of the answers, nothing on my calculation page will change or recalculate.
I know this is long and I hope it doesn't discourage others from helping. Please note that I can provide anything from my InfoPath Template that may help in providing a solution.
Thanks,
Adam