Forum Discussion

MattHazard's avatar
MattHazard
Community Member
4 years ago

Quiz Progress Indicator

Hi,

Does anyone know how to show progress during a 5 question quiz using the icons below so they change to a 'correct' state (green) when the user answers correctly and keeps showing green (or red for incorrect) on the following questions until they finish the quiz? 

Thanks

  • JackieHa's avatar
    JackieHa
    Community Member

    Hello,

    This can be accomplished by doing a few things. First, edit the states of the rectangles and add your "Correct" and "Incorrect" states.

    Next, create a variable to correlate with each rectangle. Name them Rect1, Rect2 etc. (or something similar) and make them number variables.

    If the user selects the correct answer, update the variable to 1, otherwise, update the variable to 2. Then create a trigger that will change the state of the rectangle to Correct/Incorrect when the user clicks the submit button, based on whether the number variable is 1 or 2.


    On each subsequent slide, you will need to have the state of the rectangles change when the timeline starts so that the result from the previous slide stays.

     

    Hope this helps!