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-LeeRichar11 months 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.
- Nedim11 months 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?
- ShannaRowney11 months agoCommunity Member
Hello Nedim,
Thank you very much for posting this work around. It is going to help a ton on a project that I'm working on.
I must be doing something wrong, however. I tried to implement it and it doesn't seem to be working. I cannot attach my entire .story file here because the content is for a private client, but I've attached a video that shows where I've added in your JavaScript. Might I be able to bug you to take a peek at it and let me know if I am doing anything glaringly wrong?
I very much appreciate any help that you can provide!
- Nedim11 months agoCommunity Member
Hi Shanna,
Everything looks good at first glance. I don't think your other JavaScript triggers would affect the intended functionality. To be sure, you can try disabling these other JavaScript triggers and preview the course. Could you also let me know which version of Storyline you currently have installed on your computer? I recall that there were some issues reported with the "Restart course" trigger in earlier versions of Storyline.
- ShannaRowney11 months agoCommunity Member
Hello Nedim,
Thank you very much for your quick response. I appreciate it.
I gave disabling the other JavaScript triggers a try, to no avail.
I am using the most up-to-date version of Storyline 360... so shouldn't be having the issues.
I will continue digging and trying to figure it out. Thank you again for your help.
Related Content
- 10 months ago
- 11 months ago
- 9 months ago