Clearing student input after pressing action button?


I am trying to re-use the same screen with a problem generator. I would like for the student’s input to go back to being blank when they hit submit.

cellContent(0,2): when Btn1.timeSincePress()>0 "" otherwise "test"

This code has the initial value as “test”, which disappears when I press the button. However, I cannot recreate the same effect with student input. I tried adding cellEditable into the mix… but no luck.


you can use the sink clearOnReset: to empty the input field. You can also set conditions for when and when not to clear the input (i.e. clear only when the previous answer was correct).


Does clearOnReset apply to table cells or only expression inputs?


Only expression inputs.