Forum Discussion
Storyline 360 - Reset 'restricted' menu on course restart (after quiz failure)
This is something I implemented a while ago. Attached is a simple example demonstrating JavaScript that resets the menu items to "restricted" after the learner clicks the Restart button on the Results slide. This prevents access to slides once the course is restarted.
Two JavaScript codes are executed: one triggered by the "Restart Course" action and another on the master slide. Please test it in your environment and feel free to reposition elements as necessary (for example, executing JavaScript on the Failure layer of the Results slide).
- Jamie-LeeRichar6 days agoCommunity Member
Hi Nedim,
I tried your JavaScript solution but it didn't restrict the menu after restarting the course. I'm not sure if I'm missing anything. I looked back at your storyline file and added the JavaScript on a button I created to restart the course.
- Nedim4 days agoCommunity Member
Hi Jamie,
I can’t really tell if you're missing something without seeing your file. In my post, I mentioned two JavaScript codes: one that executes on the last slide (from where you're restarting the course), and another that runs on each slide, but it's placed on a master slide. Could you confirm that you have both JavaScript codes/triggers executing as per my explanation?