Is it “Legal Wappler” to put variables inside a repeat statement in HTML?
I am doing this as described below, but I’m getting irratic results with regard to the variable values being updated correctly based on the server connect data that has been loaded.
Does it make any difference if the repeat is a repeat children?
The details are below!
Antony.
= = = = = = = = = = = = = = = = = =
I have a repeat which lists the attendees at an event and then a column for 4 different messages they may have been sent. It looks like the image below.
I have a code structure something like this:
repeat attendees
16 variable definitions which reference a value from the repeat
HTML for each row as shown below.
The variable definitions look something like this:
If I put a variable inside a repeat which repeats ‘n’ times, and the variable is dependent on a value taken from the repeat (so as I documented, in this case contact), can I expect Wappler to create ‘n’ copies of the variable each with its own value, based in my example, on the different value of contact for each item repeated?