Merge multiple text boxes into one text box
I have five text boxed named Name1, Name2, Name3, Name4 and Name5. When I enter names into each of these text boxes, I would like to populate another text box, named All Names, with these names. If I filled in Allan in Name1, Bob in Name2, Charlie in Name3, Donald in Name4 and Edward in Name5, I would like All Names to look like this:
Allan
Bob
Charlie
Donald
Edward
I have tried using this custom calculation script in All Names, but the names all populate on the same line in All Names, not on different lines:
event.value = this.getField("Name1").value + this.getField("Name2").value + this.getField("Name3").value + this.getField("Name4").value + this.getField("Name5").value;
I think I need to insert code for a carriage return after each name.
