OK…I am trying to check the input of a text input and depending on the input, aggregate a value into a list of the same name.
So…suppose a student enters a 3 in a math input on page 1.
Then enters the letter A in a text input on page 2.
I would like this 3 to be placed in list A using aggregation across the class.
So…I have five lists A, B, C, D, E, and 6 numbers 0, 1, 2, 3, 4, 5. Students pick a number then a letter.
Make sense?
@StevePhelps If you are really just trying to have students choose a letter from A to E and a number from 0 to 5, it would make sense to use multiple-choice components instead of text or math inputs. Otherwise, you’d have to worry about upper or lower-case as well as numbers or letters that fall outside of the range you want them to consider.
That is a good idea…I will try that. Thanks, @sergeballif!
Is there a way to check the input of a text input though?
Say students have to enter the code “ABCD”. I want to check if that’s the right code.
You can’t use a correct sink on a text input, but let’s say you want the code to unlock a hidden component (or maybe you have a different idea in mind), you can use this code:
this.content="ABCD"