Hello guys(and girls),
Does anybody know a way to line break within a textbox? I am dynamicaly filling a textbox using a string and i was wondering if there is any "code" or <tag> i could put into my string to tell the texbox to line break?
Textbox is set to allow multiple lines and field format is Rich text.
I thought too this answer would work but all i get outputted is this :
Some text that should end at this point. <br> Second line of this text. <br> Third line,
Apparently the tags are getting encoded when you try to set the rawValue of the field.
Try this instead:
var richTextValue = '<body><p>Line 1 of text</p><p>Line 2 of text</p></body>';
Are you trying to write script to populate the line break, or do you want to know how to generate the XML that gets fed into the form so the line breaks will appear?
The instructions I provided above will show you how to script it.
If you want to know what the XML should look like, do this:
You can then test out different variations of the xml file and use the Import Data option to import the xml into the form.
I'm not familiar with the SAP integration, but I'm pretty sure it's using the LiveCycle Forms module to render the form.
What type of data connection do you have defined in Designer? It has to be one of the following:
I'm guessing it is 1 or 2, in which case the instructions I gave you above for exporting the XML data would still apply. You just need to make sure the data in SAP looks like whatever is in the exported XML file.
In Designer, go to the Data View tab. You should see a data connection. Right-click on the data connection and select "Connection Properties". The "Data Description Type" will tell you the type of data connection.
I found the solution!
I've put the ascii code for "new line" into my string where i wanted it to line break and i've pushed my string into the textbox using the data binding and it worked like a charm.
Thanks for all your help Justin!