Change borderColor fields in Array
I would like to change the border color of all of the fields in a 60+ array of fields, dependent upon whether a button is hidden, without having to set each field border color one-by-one. Here is an example of how I have this set up, which is not working. How can I do this?
var btn = this.getField("btn.ABC");
var highlight = new Array()
highlight[0] = "chk.BP"
highlight[1] = "txt.CD.A.Line.01.b"
highlight[2] = "num.CD.BPAC.A.01"
highlight[3] = "num.CD.BPBC.A.01"
highlight[4] = "txt.CD.A.02"
highlight[5] = "num.CD.BPAC.A.02"
if(btn.hidden == true){highlight.borderColor = color.white}else {highlight.borderColor = color.black}
