I'm trying to put a couple of line breaks in between strMessage2 and strMessage3 in the automatic e-mail button in the following document. What am I missing? Thanks!
https://acrobat.com/#d=hSatmYfM4gqdX1cb-XRVMg
Win 7, LC ES2 9.0
Solved! Go to Solution.
Make sure you are using \n and not /n.
Views
Replies
Total Likes
"\n" is a return in JS.
So if you add a couple at the beginning of your strMessage3 text it should do the trick: "\n\n**THE DCO REQUEST..."
Views
Replies
Total Likes
Nope, that doesn't work. It only prints the "/n/n" as text before the message. Putting it outside just before the quotes does not work either, that disables the button function completely.
Views
Replies
Total Likes
Make sure you are using \n and not /n.
Views
Replies
Total Likes
Oops, make sense. It works now, thanks!
Views
Replies
Total Likes
I'm using these "\n" in several scripts that have multiple lines, so I'm using the "+" at the end of the line to continue. When I use a single "\n" the "+" becomes inactive, but when I use "\n\n" it works again. Do you know what this is about?
This works:
"bla bla \n\n" +
This doesn't work:
"bla bla \n" +
Views
Replies
Total Likes
Can anyone shed any light on this? Thanks.
Views
Replies
Total Likes
both work fine for me.
I had to add "bla bla \n\n" + "bla" or "bla bla \n" + "bla" If you have the + after but do not follow it with something then it does not work.
Views
Replies
Total Likes
When I put just one ".... \n" at the end of a line, the "+" goes inactive (not blue), like it's not working. What am I doing wrong?
Views
Replies
Total Likes
You are correct the + sign does turn black after a single return \n but blue after a double \n\n but both work for me. It could be a bug in LCD. To be honest I did not even notice the color change until I changed the font size of my script window.
You were right! I assumed because the color was not correct that the syntax was bad, so I never actually tried leaving it that way. As you say, it does work.
Thanks.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies