En campo formulario pdf separar en líneas de campo lista

Tengo un formulario pdf, un campo llama a un campo lista y envía varias opciones, las separo con ||, pero no consigo que saltan en nueva línea

El código java script, es este:

var cuadroL = this.getField("cuadro_lista");
cuadroL.hidden = true;
var texto = "";
//app.alert("texto1");
var f = this.getField("cuadro_lista");
var a = f.currentValueIndices;
//app.alert("texto2");
if (typeof a == "number"){ // a single selection
texto = texto+"||"+f.getItemAt(a, false);
console.println("Selection: " + f.getItemAt(a, false));
} else {// multiple selections
console.println("Selection:");
for (var i = 0; i < a.length; i ++){
texto = texto+"||"+f.getItemAt(a[i], false);
console.println(" " + f.getItemAt(a[i], false));
}}
var cuadroT = this.getField("Texto1");
//app.alert(texto);
cuadroT.value = texto;
var texto= this.getField("Cerrar objeto");
texto.hidden = true;
var texto= this.getField("Seleccionar objeto");
texto.hidden = false;

Añade tu respuesta

Haz clic para o