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.
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.
There was a number of errors in the Score1 calculate event
If should be if
.raw.value should be .rawValue
elsebif should be else if
Score should be Score1
I wouldnt worry about it, everyone has made mistakes and wondered how they did that. The thing I found in my experience is that I never seem to do it again, and it is first thing in my mind when error checking the next time.
The hidden numeric field is Score 1 in Row 11 in the table1. The field at present is not hidden for testing purposes. I tried to take your suggestion but the code is not working. Any chance you can figure out what is wrong?