Forum Discussion
ChristophSchmol
20 days agoCommunity Member
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.
- 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”;
ChristophSchmol
19 days agoCommunity Member
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”;Nedim
19 days agoCommunity Member
It's an excellent solution. Glad you solved it.
Related Content
- 6 months ago