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

Need JavaScript /FormCalc code to show multiple messages in popup


Not applicable

I need the scripting code to show the multiple messages in a popup, I know the method XFA.HOST.MESSAGEBOX() which only shows one message at a time.

My requirement is I am consuming a web service hosted in SAP using Adobe Lifecycle Designer in my Adobe form. This web service will return messages in a table format, I need to show all of these messages in a single popup when the user clicks a button.


2 Replies


Not applicable
Hi Basava,

you can add line breaks in the messagebox.

Is that a possibility for you?

you only have to add a '\n' in the output-text (javascript) + '\n' + field2);


Not applicable
Hi kunzd,

Thanks for your reply.

This got solved using the below code

var cnt = 10

var mystr

var newline = "\u000a"

for i=0 upto cnt do

mystr = Concat(mystr, "Message ", i, newline)