# Reset Button Count

**URL:** <https://cl.desmos.com/t/reset-button-count/3561>\
**Category:** Questions\
**Created:** [July 28, 2021, 6:20pm UTC](https://cl.desmos.com/t/reset-button-count/3561 "2021-07-28T18:20:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbrigida](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/rbrigida/32/1449_2.png) [@rbrigida](https://cl.desmos.com/u/rbrigida)\
**Post date:** [July 28, 2021, 6:20pm UTC](https://cl.desmos.com/t/reset-button-count/3561/1 "2021-07-28T18:20:52Z")

</div>

This seems to be pretty common request, but I still have not figured it out.

How can I code this so that if they make an error on their first attempt, it will reset itself so that they can’t just move the point around until the green check shows up.

> **[Reset the Button Count • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/61019d9f964ff5966611e7fb)**
>
> by Mr Brigida

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [July 28, 2021, 10:32pm UTC](https://cl.desmos.com/t/reset-button-count/3561/2 "2021-07-28T22:32:21Z")

</div>

If you use captures in your button CL, and set your correctness checks to those lastValues, they’ll have to click the button each time they want to check.

---

<div class="post-metadata">

**Author:** ![rbrigida](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/rbrigida/32/1449_2.png) [@rbrigida](https://cl.desmos.com/u/rbrigida)\
**Post date:** [July 29, 2021, 5:46pm UTC](https://cl.desmos.com/t/reset-button-count/3561/3 "2021-07-29T17:46:11Z")

</div>

Thank you. Working perfectly.
