Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

second line in a message box

Avatar

Level 3

Hi guys,

i hope you can help me with this.

I want to create a second line in a message box.

I found out in javascript that i use for that \n somewhere in the xfa.host.messageBox("") but i tried everything out, and it still doesnt work.

Can you help me with that?

Thank you in advance!!

Diana

1 Accepted Solution

Avatar

Correct answer by
Level 3

Does your script look similar to this and did you select the JavaScript option for the language?

xfa.host.messageBox("This is a message. \nThis is a new paragraph. \n\nHere is a new paragraph with two spaces.", "This is a title", 3, 0);

View solution in original post

4 Replies

Avatar

Correct answer by
Level 3

Does your script look similar to this and did you select the JavaScript option for the language?

xfa.host.messageBox("This is a message. \nThis is a new paragraph. \n\nHere is a new paragraph with two spaces.", "This is a title", 3, 0);

Avatar

Level 3

THANK YOU SO MUCH!!!

You are the best!!!

Just one short question.

is this possible to have a two space break? here I applied my code but it doesnt want to do this.

xfa.host.messageBox("!!!Susscessfully submitted!!!. \n\nTo proceed to PRINT VIEW, click YES!. \nTo CLOSE the form, click NO!."

, 3, 2);

Thanks,

Diana

Avatar

Level 3

Yes, you can just add another \n for each break.