Automatically select checkboxes based on one text field value
Hello,
What I'm looking for exactly is:
If the value in ("section_1_a") field = 3, then the check box ("a_1") has to checked automatically, and if the value is less than or greater than 3, ("a_1") must remain empty;
If ("section_1_a") value between 3 and 6, the check box ("a_2") has to checked automatically, and if not, ("a_2") must remain empty;
Another example, if the value in ("section_1_a") is 14, the check box ("a_9") has to checked automatically, and if not, ("a_9") must remain empty, and so on...
So what is the wrong in my code? It's working well if there is one check box, maybe (else if) need more adjustment!
var s1 = this.getField("section_1").value;
event.value = s1;
if (s1 = 3) {
this.getField("a_1").checkThisBox(0, true);
}
else if (3 < s1 < 6 ) {
this.getField("a_2").checkThisBox(0, true);
}I need to fix it so I can complete the work on this sheet, and repeat (if) statments 13 times in each column

Thank you very much
