Avatar

Level 2

I have a text field with rich text format. I need to add a new line character if the length of a sentence exceeds 65 characters. When I edit the text value using javascript the formating breaks and the signature event fails eventually. Is there a way to edit the body of the text field value? I realized that the value is store in text/html.

below is sample:

Before edit:

<txtOtherDocuments><body xmlns="http://www.w3.org/1999/xhtml" xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1">

     <p style="margin-top:0pt;margin-bottom:0pt;font-family:Arial;font-size:8 pt;text-decoration:none">Test Data</p></body>

Using field.rawValue="...." fails. Is there a different set of commands?

Please help.

Thanks