How to get 2 layers, triggered by 2 separate drop down menus, to appear at the same time?
Hi All,
I currently have a drop down menu that uses the below formula (under Run Custom Validation Script) to pull-up different layers with pictures. When the name matching the layer is selected in the drop down menu, the picture/layer appears. When I select a different name, the previous picture goes away and the new picture appears, and if there's no matching layer name in the drop down list, no picture/layer appears at all. Perfect.
However, when I tried to use the same formula in a second drop down list, so that I could see BOTH the picture/layer of the first drop down and also the picture/layer of the second drop down at the same time, only the picture/layer of the second drop down appears.
I'm looking for the same functionality I had before; if I choose an option in the drop down that has a matching layer name, the picture should appear, and stay until another picture is chosen or there's no matching layer name in the drop down list. I just want that for 2 separate drop down lists 🙂 Thanks in advance for your help!
var ocgs = this.getOCGs();
if (ocgs) {
for (var i in ocgs) {
ocgs[i].state = (ocgs[i].name==event.value);
}
}
