3 Replies Latest reply on Oct 11, 2016 5:00 AM by tpk1982

    hide layers

    jakec88782761 Level 2

      I need to hide a layer called draft but some times it's spelt Draft and other times its draft.


      openDocs[i].layers.item("(?i)DRAFT").visible = false; // This was a failed attempt


      I thought that maybe changing it toUpperCase might work but it didn't, maybe my code was wrong.


      Can anyone provide some guidance?