Math Input for Polypad Input

I would like to pull the answers for this polypad from the graph on the page. I have two questions.

  1. Am I able to type something like this as the solutiion to a polypad input?
    distanceAB= numericValue(“\round(${graph.number(C_a)},1)”)

  2. Are students able to type math as their answer to a polypad input?

Hey @Rebecca_Johnson1! Thanks for reaching out!
We can’t really send anything into a Polypad using CL. So, numeric values for solutions would need to be set as solutions in the Polypad and then use the CL exports for the inputs to pull correctness as a boolean to the CL.
Alternatively (and possibly more of what I think you’re looking for), you could always pull the value a student would input into the text areas out to the CL using CL exports (content) and then use equality in the CL against the value from the graph to check for correct. Here’s an example of what I mean.

As a side note, I’d encourage you to use simpleFunction for rounding rather than numericValue as it is more robust and will give you more of a true answer more of the time than numericValue would.

@Rebecca_Johnson1 As a follow up, our Polypad guru at Amplify mentioned to me that this may be an interaction where a Polypad may not be the best solution. It was apparent to me at first as I knew you were wanting to use Polypad, but I agree with him.
I added a new screen to the activity I linked yesterday where instead I used a couple of tables to organize the student inputs. Overall, something like this is much nicer and easier to use across the board. I complete the first table checking for length and used a few list functions to help make life a little bit easier and less repetitive.