HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... Disable a hotspot
Disable a hotspot
  View type:
I have created a picture quiz using hotspots to identify relevant areas to be scored.

This adds a score to a "current score" object. However, if the hotspot is clicked again, the hotspot area is scored again. What's the best way to stop this from happening? I've tried to disable the hotspot after click but can't work out how to do this.
Thanks in advance for any help on this.
 
Hi Susan,
I'm very new to Courselab and interested in your problem because I am building an assessment product where picture quizzes are important. Is there an A - Z guide to do this?
 
Hi Susanne
I'm guessing that you have some image but only one hotspot on the 'correct' image that writes the score.
Like this it would add to the score on each click.
I'd think that you would need to set a variable on page load, it should just have a page scope. This would be set at a value of 0.
Now you need an IF THEN statement, at the on click actions for the hotspot you first add an IF value of the variable=0 continue, add to the score and then set the variable value to 1.
If it's clicked again the IF will see it's already been clicked and not add to the score.
You'd need to make the module linear so that you can't go back to the pages as the variables would reset.
Alternatively use global variables for each hostspot then you could return to the pages and clicking on the hotspot would only add to the score if that variables value was 0.
 
 
If I get time over the weekend I'll play and see what the easiest way to do this is.
If I make something that works does your work mail address accept zip files?
 
 
 
Hi Nick

Sorry, I haven't looked at this page for a while and managed to sort out the problem myself.

Thanks for your responseI'd still be interested to see your solution, especially if it uses variables as I'm very shaky on this topic!
Subject:
Message options
No additional options