Forum Discussion

StuartSamuels's avatar
StuartSamuels
Community Member
4 years ago

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

  • 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.

    Windows 10 (1) 2021-12-08 at 9.36.26 AM

    The results:

    Screen Recording 2021-12-08 at 09.36.45 AM

    Let me know if this works!

  • 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):

    Windows 10 (1) 2021-12-08 at 9.08.07 AM

    Here's what that would look like:

    Screen Recording 2021-12-08 at 09.10.59 AM

    I hope this helps!

  • StuartSamuels's avatar
    StuartSamuels
    Community 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!