Check a specific checkbox based on a variable
First off, I'm using checkboxes as a radiobutton in this example.
I have a series of checkboxes all named "Finish1" When I select a specific checkbox in the "Finsh1" set, I want it to look at the export values of another group of checkboxes named "Color1" and hide specific ones. What I have attempted below I'm sure is a mess and it doesn't work, but it was my best idea.
Thank you for your help!
var vc = this.getField("Color1").value;
if(vc == 3 || vc == 5 || vc == 8 || vc == 12 || vc == 13 || vc == 14 || vc == 18 || vc == 19 || vc == 20) {
vc.display = display.hidden ;
}
else if(vc == 3 || vc == 5 || vc == 8 || vc == 12 || vc == 13 || vc == 14 || vc == 18 || vc == 19 || vc == 20) {
vc.display = display.visible ;
}
