Forum Discussion

BertCasaert's avatar
BertCasaert
Community Member
8 years ago

Storyline 360 - Reset 'restricted' menu on course restart (after quiz failure)

Hi,

We're using the 'restricted' menu feature for a storyline 360 course, which works fine the first time going through the course.

However, if a user fails the end quiz, we're sending the user back to the start of the course (&resetting the quiz), but we can't seem to find how to reset the menu again, so that the user can't immediately jump forward to the quiz again.

Is there a way to reset the progress made in a 'restricted' menu?

Thanks!

41 Replies

  • MegWry's avatar
    MegWry
    Community Member

    Hi, Looking for an update on this since its about a 4-5 year old thread, but I am still waiting for a workaround, as I do not want to lock slides completely. 

  • Hi, I am experiencing the same issue and would appreciate any advice to troubleshoot this. 

  • Nedim's avatar
    Nedim
    Community Member

    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-LeeRichar's avatar
      Jamie-LeeRichar
      Community 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.

       

      • Nedim's avatar
        Nedim
        Community 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?

    • ShannaRowney's avatar
      ShannaRowney
      Community 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!

      • Nedim's avatar
        Nedim
        Community 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.