Correspond Number to a Radio Button
I am creating a form to calculate performance scores.
I would like a radio button to be automatically selected based off a calculated score.

Throughout my document, I have populated buttons to execute this javascript based off of the "Mouse Up" action (Group19 are my radio buttons):
var totalScore = this.getField("Total").value;
if (totalScore >= 1.00 && totalScore <= 1.99) {
this.getField("Group19").value = "Choice1";
} else if (totalScore >= 2.00 && totalScore <= 2.99) {
this.getField("Group19").value = "Choice2";
} else if (totalScore >= 3.00 && totalScore <= 3.99) {
this.getField("Group19").value = "Choice3";
} else if (totalScore >= 4.00 && totalScore <= 4.59) {
this.getField("Group19").value = "Choice4";
} else if (totalScore >= 4.60 && totalScore <= 5.00) {
this.getField("Group19").value = "Choice5";
}
The javascript executes perfectly, but here is the problem - the form user needs to click on a button to activate the javascript, which is inelegant. I have noticed that users will fill out the form and fail to click on the buttons needed to activate the javascript. I have seen a form where a radio button is automatically selected based off of the number in the "Overall Performance Score" without the need to click on a button to execute the javascript.
Is there another way to correlate the "Overall Performance Score" to a radio button without to use of a button to activate the javascript?
Thank you SO much for any expertise you may have 🙂
