# Keeping track of how many times students check their work

**URL:** <https://cl.desmos.com/t/keeping-track-of-how-many-times-students-check-their-work/8238>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [September 23, 2025, 11:27pm UTC](https://cl.desmos.com/t/keeping-track-of-how-many-times-students-check-their-work/8238 "2025-09-23T23:27:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leslie\_Klein](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/leslie_klein/32/4542_2.png) [@Leslie\_Klein](https://cl.desmos.com/u/Leslie_Klein)\
**Post date:** [September 23, 2025, 11:27pm UTC](https://cl.desmos.com/t/keeping-track-of-how-many-times-students-check-their-work/8238/1 "2025-09-23T23:27:09Z")

</div>

[This](https://classroom.amplify.com/activity/68d2b091db130e61fa4d815d) is the activity in question, particularly screens 3 & 5.

I am working on preventing students from just clicking until it says correct so I have this on the “check” button:

p=this.pressCount  
disabled: this.pressCount=3  
label: “Check 1 & 2”

resetLabel: “Try Again”

and then this on the note component:

content: when q31.matchesKey and q32.matchesKey and button31.pressCount\>0 “Good Job!” otherwise " "

I like that without the “Good Job” students know to click the “Try Again”, but students can also just click the options until “Good Job” appears. If I had to guess, the issue is in the pressCount portion of the note, but I am officially out of ideas 🤣 thank you so much for your help

---

<div class="post-metadata">

**Author:** ![NTMDev](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/ntmdev/32/7141_2.png) [@NTMDev](https://cl.desmos.com/u/NTMDev)\
**Post date:** [September 24, 2025, 1:05am UTC](https://cl.desmos.com/t/keeping-track-of-how-many-times-students-check-their-work/8238/2 "2025-09-24T01:05:42Z")

</div>

Okay, I’ve found the problem, but I don’t know how to fix it. It’s when students press the check button. When they do, its allows the note to show whenever it wants. My idea is to do something like:

```auto
set state to 1 when the submit button is pressed
set note content to "Good Job" if state is 1 and answers are all correct
set state to 0 after correctness is evaluated
# this allows the note component to only evaluate once

```

---

<div class="post-metadata">

**Author:** ![MichellePalker](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/michellepalker/32/5128_2.png) [@MichellePalker](https://cl.desmos.com/u/MichellePalker)\
**Post date:** [September 24, 2025, 5:55pm UTC](https://cl.desmos.com/t/keeping-track-of-how-many-times-students-check-their-work/8238/3 "2025-09-24T17:55:40Z")

</div>

would you like the button to reset once students start to change their answer? if so add this to each MC component:  
`selected =`  
`when this.isSelected(1) 1`  
`when this.isSelected(2) 2`  
`when this.isSelected(3) 3`  
`when this.isSelected(4) 4`  
`otherwise 0`

then in the button you can add:

`resetOnChange: "${q31.script.selected},${q32.script.selected}"`

and on the note that shows “good job” replace  
`button31.pressCount>0` with `button31.timeSincePress>0`

---

<div class="post-metadata">

**Author:** ![NTMDev](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/ntmdev/32/7141_2.png) [@NTMDev](https://cl.desmos.com/u/NTMDev)\
**Post date:** [September 24, 2025, 10:57pm UTC](https://cl.desmos.com/t/keeping-track-of-how-many-times-students-check-their-work/8238/4 "2025-09-24T22:57:29Z")

</div>

oh that’s very smart… I was not aware of `resetOnChange`. Does that also reset the `timeSincePress`?

---

<div class="post-metadata">

**Author:** ![MichellePalker](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/michellepalker/32/5128_2.png) [@MichellePalker](https://cl.desmos.com/u/MichellePalker)\
**Post date:** [October 8, 2025, 5:50pm UTC](https://cl.desmos.com/t/keeping-track-of-how-many-times-students-check-their-work/8238/5 "2025-10-08T17:50:22Z")

</div>

yes, resetOnChange will reset the timeSincePress

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/f/f5bd144684474e9a2f333002cde9840e52c5dbd3.png) [@system](https://cl.desmos.com/u/system)\
**Post date:** [October 12, 2025, 1:49am UTC](https://cl.desmos.com/t/keeping-track-of-how-many-times-students-check-their-work/8238/6 "2025-10-12T01:49:24Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
