Expand my Community achievements bar.

Message Box - how to add a line in box

Avatar

Former Community Member
Created a fillable form using the Designer and when it opens an instruction box appears. How do I make the instructions appear as a list instead of a one big paragraph.



My syntax is as follows for docReady:

xfa.host.messageBox("Click in first field, then use the tab key to move through form.","Instructions","1");



I want to add three more instructions lines but don't know what the syntax is or if it can be done? I do not want it to appear as one big paragraph!



Please help! I have searched and searched...for the answer...
2 Replies

Avatar

Former Community Member
Try putting "\n" in your text where you want a line break to occur (don't leave a space after the "n"). Use one "\n" for each line break (hard return) you want to appear.



For example:



xfa.host.messageBox("Click in first field, then use the tab key to move through form.\nNew instruction line.\nNew instruction line 2.\nNew instruction line 3.", "Instructions", "1");



LHigbee