# Still working on other options for Tests

**URL:** <https://cl.desmos.com/t/still-working-on-other-options-for-tests/3328>\
**Category:** Questions\
**Created:** [May 24, 2021, 3:31pm UTC](https://cl.desmos.com/t/still-working-on-other-options-for-tests/3328 "2021-05-24T15:31:04Z")\
**Posts on this page:** 9\
**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:** [May 24, 2021, 3:31pm UTC](https://cl.desmos.com/t/still-working-on-other-options-for-tests/3328/1 "2021-05-24T15:31:04Z")

</div>

i am trying other options (other than not allowing students to see the last slide)  
to use desmos as a test.

I wanted to have the table appear when they click the button, but also “capture” the grade, and not allow it to change when they make their corrections.

Is this possible? Here is my (shortened) activity. I was playing around with the code, but I can’t figure out how to ‘lock’ or “capture” the contents of the cell when the button is hit once.

> **[Trying to capture A grade • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/60a7ddf7c67f63082093ea6e)**
>
> I am trying to "capture" a score, and then let them correct

---

<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:** [May 24, 2021, 4:50pm UTC](https://cl.desmos.com/t/still-working-on-other-options-for-tests/3328/2 "2021-05-24T16:50:58Z")

</div>

`capture` code needs to go in the button CL. I’d do this:

```auto
capture(`a2`): tableScore.script.a1
disabled: this.pressCount>0

```

Then `showGrade.lastValue(`a2`)` will store the total grade.

---

<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:** [May 24, 2021, 6:04pm UTC](https://cl.desmos.com/t/still-working-on-other-options-for-tests/3328/3 "2021-05-24T18:04:29Z")

</div>

I am not sure of the syntax…I tried some more code if you want to check it out…really confused on what is actually in a2.

I am assuming that the capture puts a1 into a variable a2. Can I then reference  
showGrade.script.a2?

which component gets the showGrade(`a2`).lastValue ?

I tried a third variable, a3 just to see what was in a2…No problem if I am pretty far off. I am just playing around

I appreciate your help…

---

<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:** [May 24, 2021, 6:20pm UTC](https://cl.desmos.com/t/still-working-on-other-options-for-tests/3328/4 "2021-05-24T18:20:52Z")

</div>

a2 is a number list of the values captured each time the button is pressed, which will only be one value since the button is disabled after the first press.

> [@rbrigida](#):
>
> which component gets the showGrade( `a2` ).lastValue ?

Wherever you want to display the grade. I really meant that is how you can access it. So if you want it in a note:

```auto
content: "Your final grade is ${showGrade.lastValue(`a2`)}."

```

or similarly in a table

```auto
cellContent(5,2): `${showGrade.lastValue(`a2`)}`

```

---

<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:** [May 24, 2021, 9:22pm UTC](https://cl.desmos.com/t/still-working-on-other-options-for-tests/3328/5 "2021-05-24T21:22:25Z")

</div>

![image.png](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/8/84fe596972021c64a0b34834ec61fd0fa16fdfad.png)

Code in note:

![image.png](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/e/e25689399225d067bf9b3f62ee064417d41010e9.png)

I am getting “unkown function showGrade” error.  
Thanks again for you help…

---

<div class="post-metadata">

**Author:** ![cwinske](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/cwinske/32/3106_2.png) [@cwinske](https://cl.desmos.com/u/cwinske)\
**Post date:** [May 24, 2021, 9:59pm UTC](https://cl.desmos.com/t/still-working-on-other-options-for-tests/3328/6 "2021-05-24T21:59:24Z")

</div>

That’s just an error with the syntax. The variable needs to go after lastValue.

```auto
content: "${showGrade.lastValue(`a2`)}"

```

---

<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:** [May 24, 2021, 10:54pm UTC](https://cl.desmos.com/t/still-working-on-other-options-for-tests/3328/7 "2021-05-24T22:54:33Z")

</div>

That did it…I was experimenting with alternatives to “pacing” for quizzes. That seems to do the trick!

Thanks to EVERYONE…I have been teaching for 35 years, and this desmos CL has been one of the most interesting teaching tools that I have come across in awhile!

---

<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:** [May 25, 2021, 3:35pm UTC](https://cl.desmos.com/t/still-working-on-other-options-for-tests/3328/8 "2021-05-25T15:35:44Z")

</div>

Edited other posts to reflect correct syntax

---

<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:** [May 25, 2021, 4:14pm UTC](https://cl.desmos.com/t/still-working-on-other-options-for-tests/3328/9 "2021-05-25T16:14:03Z")

</div>

Thanks again for your help. It is always MUCH APPRECIATED…working like a charm…
