# Teacher feedback for sudent responses - table & text answer box

**URL:** <https://cl.desmos.com/t/teacher-feedback-for-sudent-responses-table-text-answer-box/2698>\
**Category:** Questions\
**Created:** [February 17, 2021, 7:50pm UTC](https://cl.desmos.com/t/teacher-feedback-for-sudent-responses-table-text-answer-box/2698 "2021-02-17T19:50:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trisha\_Johnson](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/trisha_johnson/32/2173_2.png) [@Trisha\_Johnson](https://cl.desmos.com/u/Trisha_Johnson)\
**Post date:** [February 17, 2021, 7:50pm UTC](https://cl.desmos.com/t/teacher-feedback-for-sudent-responses-table-text-answer-box/2698/1 "2021-02-17T19:50:09Z")

</div>

Hello,

I have been using CLs for student feedback in tables with numbers.

1)How can I use CL for student feedback in tables with letters? We are working on congruent triangles/segments, where students need to label the pieces with letters (Triangle ABC is congruent to triangle DEF).

2)How can I use CL for feedback in a text answer box? Looking for both numbers and letters.

Here is what I have been using:

figure1number = Answers.cellNumericValue(1,1)  
figure2number = Answers.cellNumericValue(2,1)  
figure3number = Answers.cellNumericValue(3,1)

initialCellContent(1,2): when (figure1number = 20) “✅” otherwise " "  
initialCellContent(2,2): when (figure2number = 5) “✅” otherwise " "

cellEditable(1,2): false  
cellEditable(2,2): false  
cellEditable(3,2): false

---

<div class="post-metadata">

**Author:** ![Susan\_Lauer](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/susan_lauer/32/1832_2.png) [@Susan\_Lauer](https://cl.desmos.com/u/Susan_Lauer)\
**Post date:** [February 17, 2021, 8:53pm UTC](https://cl.desmos.com/t/teacher-feedback-for-sudent-responses-table-text-answer-box/2698/2 "2021-02-17T20:53:23Z")

</div>

1. If the entire column in a table is going to be non-numeric, you can change to text so that text is not italicized, but it’s not necessary. You can check content instead of numeric values like this:

```auto
chk1 = this.cellContent(1,1)="ABC" and this.cellContent(1,2)="DEF"
cellSuffix(1,2): when chk1 "✅" otherwise ""

```

I like using cellSuffix, as it doesn’t require another column taking up room on a screen.

1. For feedback text components, you can follow them with a note component with something like this in the CL:

```auto
chk2=when text1.content="ABC" "✅" otherwise ""
content: chk2

```

Note that this text checking is more like checking each word on a spelling test, so any extra characters or lowercase instead of uppercase will not be correct. And if the order of the letters doesn’t matter, you would have to check for all possible orders. So the text component check in the note would look like:

```auto
chk3=when (text1.content="ABC" or text1.content="BCA" or text1.content="CAB" 
or text1.content="CBA" or text1.content="BAC" or text1.content="ACB")
"✅" otherwise ""
content: chk3

```

---

<div class="post-metadata">

**Author:** ![Trisha\_Johnson](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/trisha_johnson/32/2173_2.png) [@Trisha\_Johnson](https://cl.desmos.com/u/Trisha_Johnson)\
**Post date:** [February 18, 2021, 8:57pm UTC](https://cl.desmos.com/t/teacher-feedback-for-sudent-responses-table-text-answer-box/2698/3 "2021-02-18T20:57:49Z")

</div>

Thank you for the help!  
I was able to get the text box to work but not the table feature.  
I am getting a “!” underline for the = sign in the first ck1.  
Here is what I am using. Any advice?

figure1content = CongruentSegments.cellNumericValue(1,2)  
figure2content = CongruentSegments.cellNumericValue(2,2)  
figure3content = CongruentSegments.cellNumericValue(3,2)  
figure4content = CongruentSegments.cellNumericValue(4,2)

ck1 = this.cellContent(3,2) when (figure1content = BE or figure1content = CB) “✅” otherwise “”  
ck2 = this.cellContent(3,3) when (figure2content = EY or figure2content = YE) “✅” otherwise “”  
ck2 = this.cellContent(3,4) when (figure4content = DE or figure3content = ED) “✅” otherwise “”

cellEditable(1,3): false  
cellEditable(2,3): false  
cellEditable(3,3): false  
cellEditable(4,3): false

---

<div class="post-metadata">

**Author:** ![Susan\_Lauer](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/susan_lauer/32/1832_2.png) [@Susan\_Lauer](https://cl.desmos.com/u/Susan_Lauer)\
**Post date:** [February 18, 2021, 10:11pm UTC](https://cl.desmos.com/t/teacher-feedback-for-sudent-responses-table-text-answer-box/2698/4 "2021-02-18T22:11:08Z")

</div>

The when-otherwise logic flows as: when (true logical statement) (do this) otherwise (do that)

If this is in the CL for the table you named CongruentSegments, then you can write this:

```auto
figure1content = this.cellContent(1,2)
figure2content = this.cellContent(2,2)
figure3content = this.cellContent(3,2)
figure4content = this.cellContent(4,2)

cellContent(3,2): when (figure1content = "BE" or figure1content = "CB") "✅" otherwise ""
cellContent(3,3): when (figure2content = "EY" or figure2content = "YE") "✅" otherwise ""
cellContent(3,4): when (figure4content = "DE" or figure3content = "ED") "✅" otherwise ""

```

You’ll need to use **cellContent** when you’re putting non-numeric values in a table or checking for them. You need **cellContent( , ):** as a sink when you’re predefining a cell.

cellContent(3,4) is using both cells 3,2 and 4,2. Is this what you meant?
