Skip to main content
bshampton117
Participant
May 9, 2022
Question

Retake Course and Quiz button full reset of clicked states

  • May 9, 2022
  • 1 reply
  • 192 views

I have been using Paul Wilson's Youtube video on creating a button that allows learners to retake not only the quiz but the entire course and the quiz as well: advanced action:

Execute JavaScript which reads: cp.resetQuizData()

Jump to Slide  1

 

It works great! But, now I have a course that has branching with buttons that change states once clicked, and some are disbled after being clicked as well. When the learner uses the "Retake Entire Course and Quiz" button that I created, it functions as it should, but does not reset those clicked states back to "Normal" - the grayed out buttons are grayed out and/or the ones that were set to be disabled in the advanced action are also disbled not allowing the learner to progress through the entire course again.

 

So my question is: is there another quick and easy way to reset all the states of the buttons back to Normal or does this have to be done by adding more lines into the advance action for that retake button, with "Execute JavaScript" and "Jump to Slide 1" at the very bottom?

 

Thank you in advance for any help!

Shawn

 

 

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    May 9, 2022

    Do you need the option 'Retain state on slide revisit' to be checked? If it is unchecked, when returning to the slide the Normal state will appear. Basics of States.

     

    bshampton117
    Participant
    May 9, 2022

    Thanks Lilybiri. We do have that box checked on all the slides that have buttons or image buttons with changed states since the learner has to return to that slide several times before they can progress. The problem is that these buttons or image buttons are just are not being reset when the learner goes to re take the course. They stay in the "clicked" (a faded version of the color ot grayscale) state, or in one case, they stay "disabled" and cannot be clicked on at all.

    Lilybiri
    Legend
    May 9, 2022

    That makes it rather complicated.  You'll need to use the On Enter action of each slide to reset the multistate object, based on a user variable (Boolean) which you toggle to 1 when you go into the Redo course. BTW I wouldn't have used JS for that purpose, could easily be done with the built in quiz functionality as well.  See:

    http://blog.lilybiri.com/retake-quiz-tweaks

     

    Since each multistate object needs to be reset individually it will be hard to simplify by using shared actions. You don't specify how many of those objects you have, or if some of them have been timed for a number of slides. Apparently you didn't use the InBuilt Visted state? You cannot disable a group neither (one of my old feature requests). More about Reset/replay:

    http://blog.lilybiri.com/replay-or-reset-slide

     

    Forgot: it is possible that CpExtra widget (InfoSemantics - Australia) could help, because it allows to execute some commands on a bunch of objects based on a strict labeling system. That is only one of its multiple features, but it is an external widget, not free. You can try it out:

    https://www.infosemantics.com.au/about-cpextra/