2 Replies Latest reply on Jan 17, 2013 4:33 AM by MrMiyagi210

    Layer/OCG Visibility based on Combo Box Selection

    MrMiyagi210

      Hello,

       

      I'm VERY new to javascript, so please bear with me.  I have a combo box with multiple selections.  For some selections, I would like a separate OCG layer to appear, and with other selections that same layer to disappear.

       

      For example:

       

      ComboBox1: A, B, C

      Layer 1 default: hidden

       

      A - toggle layer 1: hidden

      B - toggle layer 2: hidden

      C - toggle layer 3: visible

       

      I have seen the javascripting involved turning layers on/off with buttons, but I'm having some difficultly with the combo box. 

       

      Thanks!

       

      Mike