Javascript for checkboxes and text fields
Hello,
I have 6 checkboxes that I want to determine the fill color of certain text fields.
When I check the checkboxes, I want the text field that is to the right of the check box and the text fields under New Part Number, REF. P/N, and Desription to all be filled green as shown below.

Now if I uncheck one of the checkboxes, I want ONLY the text field to the right of the unchecked box to fill transparent as shown below
With the code that I am running now, I run into the issue of the text fields under New Part Number, REF. P/N, and Desription to also turn transparent when I uncheck one of the boxes as shown below

I want all of the text fields to turn transparent ONLY when ALL of the checkboxes are unchecked as shown below

This is the code that I am running in the mouse up in each checkbox (red if/else changes based on the text field that it is next to):

if(event.target.value != "Off")
this.getField("PN1-4").fillColor = color.green;
else
this.getField("PN1-4").fillColor = color.transparent;
if(event.target.value != "Off")
this.getField("PN1-1").fillColor = color.green;
else
this.getField("PN1-1").fillColor = color.transparent;
if(event.target.value != "Off")
this.getField("PN1-2").fillColor = color.green;
else
this.getField("PN1-2").fillColor = color.transparent;
if(event.target.value != "Off")
this.getField("PN1-3").fillColor = color.green;
else
this.getField("PN1-3").fillColor = color.transparent;
