Forum Discussion
How to add a bookmarking feature?
Hi Christoph,
I tried your code as well and it works just fine, although I don't have too many slides in my project. I don't think it's a storyline bug because we are tweaking something that is not meant to work out of the box. Does the number of "Execute JavaScript" triggers match the number of "Bookmarked" variables? The code should run ok as long as you follow some rules such as:
1. the data-title name that you initially put in your code to grab the Menu element should be the same as the slide title
2. the code should run only when the "BookmarkedX" variable is True
3. if "const" = (eg. bookmarked10), the same variable should be used to grab and change the value of the CSS property
4. although there are only 3 triggers to ensure the "BookmarkedX" variable is properly toggled, it's still something that should be thoroughly checked on each individual slide
5.
In addition to your screenshot. Keep in mind that your style will be overridden by the Storyline cs-selected property if your slide is bookmarked but currently selected.
You can also send a sanitized version of your story file for me to troubleshoot. I'll be glad to assist you.