I have designed a 5 question survey that has multiple subparts to each question. The use checks a Yes or No Check box for each subpart and i have built if/then statements that yield, for each question, a text outcome (Outcome 1 or Outcome 2).
I want to create an overall scoring for the survey. I was thinking of assigning a value of 10 to each Outcome 1 and -10 to Outcome 2. Then i would tally the numeric scores of all five questions. If the total score >0, then combined answer to the five questions will be Outcome 1. if the score is <0, then the result would be Outcome 2.
The checkbox javascript already is functional, producing the right outcomes for each individual question. i am not sure how best to assign a numerical value to the outcome field to add the five scores together. All fields are in a table.
I thought about using a hidden numerical field (score) to capture a value based on Outcome 1 or Outcome 2

In this code, "subrecipient" is outcome 1 and subcontractor is outcome 2.
A relative rookie at javascript and I am not married to this approach and was hoping the better minds of this forum could provide advice on the immediate issue and then on how to add the five question score fields (although i think i can add table fields in formcalc - suggestions/code examples appreciated.