You could just count how many check boxes have a value other than "Off" and then fill in the field base on that value. Zero and one is blank 2 or greater is "Mul".
Thanx for the reply. For some reason i just cant get this. How do i i check the value is other than "Off"?
You are already adding the value to an array when the check box value is not "Off" or the check box has a value other than off.
You need to define a variable to hold the count and then of adding the value of the check box to the array, you increment the count.
Another idea, since you have the non-Off values in an array just check the length or number of items in the array. If the length is greater than 1 then there are multiple entries. If the value is zero then there are no check boxes checked.
// set field value
event.value = aValues.join(", ");
var sect = this.getField("R1").length;
if (sect == "String")
event.value = "MUL";
// set the field value
if(aValues.length > 1)
event.value = "Mul";
Thank you very much! Thats was driving me up the wall. Knew what i wanted to do but just couldnt do it!