/ Id-Extras Forum / Connecting function to specific group in dialog box / Reply To: Connecting function to specific group in dialog box

#6330

i figured it out. i just made an if statement for every radio button. if the value is true, then make that layer show

Code:

if(dialog.show()==1){

var customer = myEvent.target.textFrames.itemByName(“customer name”);
customer.contents = customerInput.text

if(unwind1.value == true){
myEvent.target.layers.itemByName(“Unwind 1”).visible = true;
var unwind1layer = myEvent.target.layers
}

if(unwind2.value == true){
myEvent.target.layers.itemByName(“Unwind 2”).visible = true;
var unwind2layer = myEvent.target.layers
}

if(unwind3.value == true){
myEvent.target.layers.itemByName(“Unwind 3”).visible = true;
var unwind3layer = myEvent.target.layers
}

if(unwind4.value == true){
myEvent.target.layers.itemByName(“Unwind 4”).visible = true;
var unwind4layer = myEvent.target.layers
}
}