Avatar

Level 10

From your post I understand that you are adding a new line chanracter ("\n") in the code while appending the text to the Textfield.

You can use the split function of the javaScript to retrieve each line form the text field. this way you get the control on each line from the text field.

Below is the sample code for your reference.

TextField1 in my sample is a multiline textbox.

var oList = TextField1.rawValue.split("\n");

for(i=0;i<oList.length;i++){
xfa.host.messageBox("" + oList[i]);
}

Thanks

Srini