I have been struggling with data manipulation with rich text fields for a while. For those who aren't familiar with rich text fields in LiveCycle, they are simple text fields with the data format = XHTML.
This allows the text field (text area) to work like Microsoft word. The end user is able to edit the text, make it bold, underline it, hyperlink web addresses etc etc.
In my case, i had to concatenate 2 pieces of rich text fields into a rich text area. The usual rawValue and formattedValue XFA properties loose the formatting if used for rich text areas.
I have attached a sample XDP that shows you how to do it "properly".
Armaghan.
RichTextCopyExample.xdp