How can I take a student input value to set the max time on timeSinceSubmit?

I keep getting the error that parameter must be a constant, but if the input is a constant, I’m not sure why this doesn’t work. Is there a way to use an input value as the max for timeSinceSubmit?

number(a_1): input1.numericValue
number(t_l): input1.timeSinceSubmit(“${this.script.a_1}”)

timeSinceSubmit( ) will not take variables. What is your purpose? There might be some tricky things you can do to achieve your aim.

I think I figured out a workaround. I was wanting to animate the drawing of a line to the x-value determined by student input after pressing the submit button, but instead of limiting it in the CL, I was able to limit the bounds on the line in the graph.

1 Like