Forum Discussion
Stop 'Show hint' button deducting from score, after initial click.
Hi.
I have created a quiz in which participants start with 100 points. The points are displayed in a text box using the 'Score' reference. As they attempt each question they have the option to click a 'Show Hint' button, to help them if they are struggling. Clicking the button reveals the hint and also deducts 5 points from the score via a "Subtract value 5 from score when the user clicks Show Hint button" trigger.
Is there a way to prevent repeated clicks of the 'Show Hint' button deducting a further 5 points?
Thanks,
Stuart
- MariaCSStaff
Stuart.
That makes complete sense! So let's go with suggestion #2:
- Create a variable called hint, with a value of 5.
- When the user clicks "Show hint", subtract the variable hint from score (100 - 5).
- The same button will also adjust the value of hint to 0.
The results:
Let me know if this works!
- MariaCSStaff
Hi, Stuart.
Thank you for reaching out!
There are a few ways to accomplish what you're looking to do. The first one I can think of is to disable the "Show hints" button once it's clicked (and you can enable it again next time they can use the Hint option):
Here's what that would look like:
I hope this helps!
- StuartSamuelsCommunity Member
Hi Maria.
Thanks for your solution. The nature of the quiz means that the user may need to return to the hint numerous times before attempting to answer the question, so I really need to keep it activated, if at all possible?
Thanks again!
- StuartSamuelsCommunity Member
Perfect! That's done the trick.
Thank you!