These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Line-makeup in cMsg: possible?

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202

Hello there,

does anybody know how to generate line-makeups within the cMsg?

I generated a button with a script from this forum and want to change it a bit for a better view.

=======================================================
var myDoc = event.target;
var address = "user [at] domain [dot] de";
var sub = "Returned formular from ";
var msgBody = "Ladies an gentlemen, this is returning form from";

myDoc.mailDoc({
bUI: false,
cTo: address,
cSubject: sub + Customer + " // " + City + " // " + Adress,
cMsg: msgBody + " " + Customer + " from " + City + " & " + Adress + "." + "kind regards " + Employee,
cSubmitAs: "PDF"
});
=======================================================

All ok so far, but the cMsg: is written only in one line, so it looks not very professional in the mail application.
=======================================================
Ladies and gentlemen, this is returning form from Customer from City & Adress.kind redards Employee
=======================================================

I tried to add line-makeups with the "\r" within the text " " like it's possible for message boxes, but without success.
My documentation has also nothing to tell to this case.

Any idea how to get it like this way?
=======================================================
Ladies and gentlemen,

this is a returning form from Customer
from City
& Adress

kind regards
Employee
=======================================================

Thanks in advance
radzmar

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Oh ohhhh :-o,

I just found the solution within an example in the JS API Reference Manual.

Just writing "... \n ..." not "... \r ..." to get the line-makeup.

Sorry for wasting your time!

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs