Resetting a input driven graph variable after a button press

I have a graph variable that is driving an animation using timeSinceSubmit(), but I also want that value to reset to zero when I do a button press. How can I make both happen?

If it helps, I am trying to reset the variable a on the second slide of this activity:

Where you have the resetOnChange, you have to tell the CL that it’s a variable that you’re dealing with, by enclosing it in ${ … }. So input1 should have

resetOnChange: "${graph1.number(`d`)}"

This will achieve what you want.

Thank you! That worked great.