1 Reply Latest reply on Oct 6, 2010 10:55 PM by George_Johnson

    Editing RichText fields using scripts

    RT - IDT

      Hi There,

       

      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:8pt;text-decoration:n one">Test Data</p></body>

       

       

      Please help.

       

      Thanks