First, I tried creating an xml file in Notepad and referencing it in the InfoPath form. The file is called "characters":
<?xml version="1.0" encoding="UTF-8"?>
<characters
cr="
"
lf="
"
crlf="
"
/>
field 1 = xxxxx
field 2 = zzzzz
I added the xml file as a data source and then concatinated "field 1", @cr, "field 2" (I also tried "field 1", @cr, @lf, @crlf, "field 2")
What I got in my rich text field was "xxxxx zzzzz" every time
What I want is: xxxxx
zzzzz
I then tried creating a text field (field 3) in the form that is read only, allows paragraph breaks, and does not refresh. The default value of the field is Ctrl+Enter nested between 2 quotation marks. (The Ctrl+Enter was not typed, but actually entered, causing the second quotation mark to line up below the first one in the function view of the default value for the field. Using this file, I then concatinated "field 1", "field 3", "field 2" - same results.
I then added amp="&" to the xml file and concatinated "field 1", @amp, "field 2"
What I got in my rich text field was "xxxxx & zzzzz"
This tells me that my file is pullin in the xml value from "characters.xml" for the &, but not for the carriage return/line feed.
Hopefully this is enough information. My goal is to send this file to the SharePoint document library so that I can use Designer and create an e-mail that lists up to 38 different fields that need to be remediated by the user. I can't conditionalize the fields to say only bring in fields that aren't empty, hence trying to put them all into one field that I import into the e-mail notification for remediation. BTW, I try to stay as far away from code as possible. :o)
Comments/suggestions?