# Disabling Draggable Points on Button Press

**URL:** <https://cl.desmos.com/t/disabling-draggable-points-on-button-press/3754>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [October 18, 2021, 5:17pm UTC](https://cl.desmos.com/t/disabling-draggable-points-on-button-press/3754 "2021-10-18T17:17:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![French](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/french/32/4354_2.png) [@French](https://cl.desmos.com/u/French)\
**Post date:** [October 18, 2021, 5:17pm UTC](https://cl.desmos.com/t/disabling-draggable-points-on-button-press/3754/1 "2021-10-18T17:17:21Z")

</div>

Hello!

I would like to prevent students from dragging the two given points of the parabola after the button is pressed. Some students are checking their work, seeing my indicator and sliding the points until the “correct” indication shows up.

Is there a way to disable the draggable points once the check my answer button is pressed?

Thanks for anyone’s time!

> **[Desmos Community Question • Activity by TJ French](https://classroom.amplify.com/activity/616dab37b2c91c129db511ba)**
>
> by TJ French

---

<div class="post-metadata">

**Author:** ![sergeballif](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/sergeballif/32/231_2.png) [@sergeballif](https://cl.desmos.com/u/sergeballif)\
**Post date:** [October 18, 2021, 5:53pm UTC](https://cl.desmos.com/t/disabling-draggable-points-on-button-press/3754/2 "2021-10-18T17:53:14Z")

</div>

You’ll want to create a variable that takes on a different value when the button is pressed. I called my variable `h_{ide}` and added a second button to reset the answer. Then the individual point coordinates have a conditional `{h_{ide}=0}` test in one coordinate so they don’t appear when the button is submitted.

> **[\[Copy of\] Desmos Community Question • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/616db22baad1ff4e380a43c2)**
>
> by Ballif, Serge

---

<div class="post-metadata">

**Author:** ![French](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/french/32/4354_2.png) [@French](https://cl.desmos.com/u/French)\
**Post date:** [October 21, 2021, 7:21pm UTC](https://cl.desmos.com/t/disabling-draggable-points-on-button-press/3754/3 "2021-10-21T19:21:11Z")

</div>

Thanks so much! Works great!
