JavaScript Calculate Average + Bonus Rating
- September 30, 2025
- 1 reply
- 136 views
I have an evaluation sheet with JavaScript that caluclates the average score from Radio Button fields. Questions have a score of 1 through 5 (and N/A--which doesn't get calculated into the average so it doesn't impact their score). I have an additional Radio Button field titled "Bonus Rating." Currently, it is not included in the var fields/part of the user's average score.
What I need is "Bonus Rating" to be added to the numerator of the average, but not the denominator (so to speak) so it serves as a bonus benefit for their rating. I got the JavaScript from a different thread and everything works great! It's just this extra bonus rating that I'm not sure where I would add that in since I'm not well versed in Java 🙁Can I add a line of code somewhere to easily add Bonus Rating in?
I've attached a screenshot of the JavaScript I'm using. Thanks to anyone who can help!
