Skip to Content
Former Member
Mar 29, 2016 at 02:47 PM

Rich Text in Adobe Interactive Forms (Bullets, Headings, etc...)


Hello SAP Community,

I am attempting to dynamically append Rich Text to text fields in an Adobe Interactive Form. This includes, lists such as bullets and numbering, as well as headings.

I have attempted several different methods in making this occur, but I have had little success.

The closest method to success is to convert HTML to ExData using the Javascript code provided below.

HTML to ExData

//XML String to wrap the HTML

var envel = '<?xml version="1.0" encoding="UTF-8"?><exData contentType="text/html" xmlns=""><body xmlns="" xmlns:xfa="" xfa:APIVersion="Acroform:" xfa:spec="2.1"><p>PLACEHOLDER</p></body></exData>';

//Current HTML Data

var htmldata = this.rawValue;

// insert into envelope

var newStr = envel.replace("PLACEHOLDER",htmldata);

//Load the final XML

this.value.exData.loadXML(newStr, 1, 1);

As a further note, Conversion must occur if exporting from an SAP WebDynPro.

  • The WebDynPro will export using the <strong></strong> tags instead of <b></b> for bold.
    • This can be fixed by using a `replace all occurrences of` statement.


  • Each Text field's field format: 'Rich Text.'
  • The code provided above will allow the html bold tag (<b></b>) and italics tags (<i></i>) to work, but not the bullet code like (<ul><li></li></ul>)
  • It is possible to have a bullet visibly appear on the adobe form designer through modifying the XML Source, but it will not appear on the exported PDF.
  • The Adobe Document Server's Version Information: 802.20080813094752.488190

Any Help would be greatly appreciated, I will reply back with any information that may help.


Matt Fleming


fieldBinding.PNG (5.4 kB)
fieldValue.PNG (6.0 kB)
fieldObject.PNG (7.7 kB)