Forum Discussion

ChristophSchmol's avatar
ChristophSchmol
Community Member
20 days ago
Solved

Hiding a TOC entry based on a variable

Can I hide a TOC entry depending on a variable in Storyline?  I urgently need this feature for a training course. Thank you for your help.
  • ChristophSchmol's avatar
    19 days ago

    Hi Nedim, thanks for your offer.

    I think I've found a simple solution. To hide the TOC entry "NEW", I simply put this script in a trigger linked to my variable:

    let NEW = document.querySelector(‘[data-slide-title=“NEW”]’);
    NEW.closest(“li”).style.display = “none”;