I have components named “label_One”, "input_One, “label_Two”, “input_Two”, “label_Three”, “input_Three”.
I have a list of sublists that would look like:
[
[One, 1],
[Two, 2],
[Three, 3]
]
I want to setup a for loop that will take the first entry of my sublist “One”, “Two”, “Three” and change the properties on my components by targeting them dynamically in the for loop:
for j in List
set (“label_” + j.0)'s Text to “j.0”
set(“input_” + j.0)'s Text to “j.1”
Now that I’ve figured this out, I save the data back to local storage by writing a function to extract the data from the fields, and not have to write static code for each component.