Hi team,
I have been trying to tidy up some code on my site and I’m having trouble adding a newline character to a string. The code I’m trying is below. The code works but doesn’t put each string on a new line. The data is within a repeater hence $item
let helmetInfo = $item('#helmetCheckBox').checked ? "✓ Helmet • " : "✗ Helmet • ";
let harnessInfo = $item('#harnessCheckBox').checked ? "✓ Harness • " : "✗ Harness • ";
let shoeSize = $item('#shoeSize').value;
let shoesInfo = $item('#shoesCheckBox').checked ? "✓ Shoes - size " + shoeSize : "✗ Shoes";
participantSizeData = "Equipment size " + equipmentSize + "\n" + helmetInfo + "\n" + harnessInfo + "\n" + shoesInfo;
Anyone got any ideas?
Stephen