Skip to main content
Known Participant
August 5, 2019
Question

[Duplicate] Can someone help me with creating a javascript please?

  • August 5, 2019
  • 1 reply
  • 273 views

i Have a javascript that can turn the layers i want on. but what i would love to include is script that will turn some other layers off once the layer is toggled on. Here is what i have so far.

var docOCGs = this.getOCGs();

for (var x=0; x < docOCGs.length; x++)

{

          if(docOCGs.name == "Cadent Trace" ||

     docOCGs.name == "Cadent Trace")

          {

                    docOCGs.state = !docOCGs.state;

          }

}

I am very new to java and am learning the basics at the moment so any help will be much appreciated!

thanks, Max

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
August 5, 2019