Skip to main content
Known Participant
November 5, 2020
Question

Variable loop increase on Quiz slides not working

  • November 5, 2020
  • 2 replies
  • 298 views

Hi

 

I created some code a few months back which allowed a quiz at the end of the learning to be completed upto 3 times. This has suddenly stopped working. I have not changed anything. I initially thought it was the LMS but it will not work in preview mode either.

 

This is the code the issue is it will allow the user to fail the test 2 times (instead of the expected 3) and just locks up on the screen displayed.

 

Any help would be apprechiated

 

 

    This topic has been closed for replies.

    2 replies

    RodWard
    Community Expert
    Community Expert
    November 5, 2020

    Did you happen to update Captivate recently?

    Stagprime2687219
    Legend
    November 5, 2020

    This seems a likely candidate in my experience.

    Number one reason that I have not yet updated.

     

    Dirlo
    Inspiring
    November 5, 2020

    ...

    I also had a problem with custom variables with the latest version... using old projects...

    And it appeared that just rewrite the variables corrected the issue !...

    So strange !...

    My advice : add text box with the variables on the slides... You will see exactly what is corrupted...

    😉

    ...

    Lilybiri
    Legend
    November 5, 2020

    Which event is triggering that action? I see that you use a user variable to track the attempts on quiz level, not the the native cpQuizInfoAttempts because that one is read-only.  Since you use the Delay command (5 seconds) apparently you want to remain on the slide where it is triggered for which reason?

    And why use an Expression to reset vAttempts to 1 when it reached 4, instead Assign to 1? 

     

    Did you debug by adding a text caption to show the value of the variables vAttempts especially?  I have no idea what those slides are jumping at. That information is missing and more important; to which event is this action linked. Where is the score slide in this scenario? It is more important than you may think, see:

    http://blog.lilybiri.com/secret-of-hidden-score-slide

     

    The logic is not fully clear to me, I would not put the Incrementing in an Else condition