Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

messageBox Line Breaks and "Hiding" Overflow Leaders

Avatar

Former Community Member

Okay, two questions in one post, but I didn't want to clutter up the main page. First, if I want to have something like,

Before you finish, make sure you have:

*Done step A

*Done step B

*And done step C

If you've done so, click 'OK' to leave

displayed in a message box, how can I set up the line breaks? I tried spacing things out with tabs, but I ran into some weird behavior where the messageBox cut off the last bit of the text. Is there a limit to the amount of text one can put in a messageBox?

Second, I would like to use overflow leaders to put different headers at the top of pages in different sections of my form. The problem is, my sole use for these subforms is as overflow leaders, and I don't want to have them anywhere else. I'd like to hide the "real" or "initial" instance of each but have them show up when they are required as overflow leaders. Does this make sense? Does anyone know how to do this?

Thank you very much.

2 Replies

Avatar

Level 10

On the first question..

You can place a line break using "\n" in java script..

xfa.host.messageBox("*Done step A \n *Done step B \n *And done step C");

I am not sure about the limit of the text on the messageBox but it can only show what ever can fit in the window. For the rest of it will say overflow.

Thanks

Srini

Avatar

Former Community Member

Thanks Srini! \n worked like a charm. Now, if someone can help me with overflow leaders, I'll stop bothering you guys (for now, at least ).