Forum Discussion

KevinReagh's avatar
KevinReagh
Community Member
3 months ago

Set question as correct or incorrect on results slide using variables

I'm trying to create a hotspot free-form question where the hotspots need to be on a layer other than the base layer, but apparently the answer hotspots can only be on the base layer. Is there a way to use a variableon a top layer to set the question to correct or incorrect? I tried playing with variables Question.Correct and Quiz.PassPercent and Quiz.PassScore but no luck

5 Replies

  • AndrewHanley's avatar
    AndrewHanley
    Community Member

    My apologies Kevin, I didn't initially understand that this was part of a Results slide.

    So it's still possible, but we need to get a bit more creative with the solution as Storylines limitation is that we cannot directly affect or alter the Quiz Score variable.

    Also, I'm not entirely sure what you mean with the Drag and Drop sitting on some of the answers. 

    Could you maybe share the slide in question, and I could have a look at building it for you?

    • KevinReagh's avatar
      KevinReagh
      Community Member

      Hey Andrew, Unfortunately I can't share the slide since it contains proprietary information. However, I came up with a couple of solutions. Note that this is for a Pick-One free-form question type.

      One is to just eliminate the drag feature, which I believe is non-508 compliant anyway. The drag feature is not crucial to the content. It simply allows learners to re-arrange "documents" on the slide, and it was possible for learners to drag a document over the answer buttons which have to be on the base level. 

      The other solution is to have two buttons on a layer that always stays on top of everything. One button on the top layer sets the state of the correct choice object (located on the base layer) to selected, the other sets the state of the incorrect choice object (again on the base layer) to selected. I tested this and I'm getting the correct results on the results slide.

      Hope that makes sense.

  • AndrewHanley's avatar
    AndrewHanley
    Community Member

    Hi Kevin,

    Yes you can definitely do this. As you rightly say, we cannot amend any of the built-in Quiz variables.

    So simply set up your hotspots on a layer, then set your variable to true whenever each of the hotspots is correct or not.

    Finally, you can call the layer with your answer hotspots on it. If necessary, you may need a trigger here which would be to show correct/incorrect feedback WHEN VARIABLE CHANGES.

    That should get it working (if I've understood it right!!) :)

  • KevinReagh's avatar
    KevinReagh
    Community Member

    Thanks for the quick response, Andrew! Unfortunately, I'm still not having any luck figuring out how to actually impact the quiz score of the course. My result slide keeps reporting a score of 0%. 

    I should add that one of the complicating factors is that I have draggable objects that can potentially cover the answer buttons on the base layer. I could bring the base layer to the front by "showing" it, but apparently, we can't "show" the base layer.