Ok I found the solution.
The incomplete Send button code atm looks like this:
var ime = this.getField("naziv");
var ulica = this.getField("ulica");
var postnast = this.getField("postnast");
var posta = this.getField("posta");
var formresults = ime.value + ", " + ulica.value + ", " + postnast.value + " " + posta.value ;
app.mailMsg(false, "mymailaddress", "", "", "Prijava " + ime.value, formresults);
As you can see this will take the form data and throw it in one row. The data will be seperated by a comma. Is there a way I could put in a command to throw the next data in a new line. I already tried to change the formresults string and add a "\n" character but acrobat wont let me close the edt window -> guess there is some other command that I am missing.
Can anybody help?
Where did you place it? Post the code that's causing the error.
var formresults = ime.value + ", " + ulica.value ;
Produces the output:
My goal is:
I tried to insert the "\n" command in there like this:
var formresults = ime.value + \n + ulica.value ;
I even tried:
var formresults = ime.value \n ulica.value ;
None of them got accepted and acrobat doesnt let me close the script editing window.
Ok now I found the solution. I just had to enter '\n' and it worked