If one or more combo box's = "fail" I want to pass the value to a text box and for it to remain there until none of the combo box's value = "fail".

I have tried to fix it by adding a second (hiddden) text box where only the item "fail" value is added. The only problem is that if the item "fail is removed from all the combo boxes the value needs to be removed from the text box. How do I do that , am i on the right track?

I see now that there's a different problem. The array is badly defined. It needs to be:

var aFields = ["CheckBox1", "CheckBox2", "CheckBox3"];

Also, I think there's a logical error in your code. Since you want to check if any of the fields has the "Failed" value you should break the loop once you discover that one of them has that value. Otherwise, you're in effect only checking the last field. So your code should actually be: