Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
prajeshdesai
Contributor


There is a requirement that we need to render rich text of html in our adobe form. As we all know that adobe doesn't know HTML but we may need to render HTML tags, for the same requirement follow below steps.

Step 1). Passing HTML to our form and set DOCPRAM-DYNAMIC = 'X'.



I created one Exporting parameter to pass my HTML rich text. You can get your HTML from SO10 also, and assign to Exporting parameter of your adobe FM.

Step 2). Create field in adobe form and set Field formate as Rich Text and bind with R_HTML.

 

Step 3). Then Test.



Not expected output.

Step 4). Now add below javascript on docClose event of field.


var envelope = "<?xml version='1.0' encoding='UTF-8'?>" +

"<exData contentType='text/html' xmlns='http://www.xfa.org/schema/xfa-template/2.8/'" +

"><body xmlns='http://www.w3.org/1999/xhtml' xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/' " +

"xfa:APIVersion='Acroform:2.7.0.0' xfa:spec='2.1'>" +

"<p>"+ this.rawValue +"</p></body></exData>";

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

Step 5). Now Test.



Hope this helps.

5 Comments
Labels in this area