Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Rich Text in a XML Dynamic Form


Level 2
Hi guys,

I'm having a problem accessing the property "richValue" of a text field.

What I'm trying to do is get comments entered in a text field to be added to a list of comments(rich, text Field), similar to chat window. So each comment added (via a button click) will be formatted differently depending on other form parameters.

Using LiveCycle Designer ES to create dynamic pdf form, target version 8.1 or higher. Testing using Acrobat Professional 8.1.2 .

All text fields have richText switch on and also the Binding data format has been set to "XHMTL", only because Designer was whinging about it.

Have tested:

]var field = event.target.getField("form1[0].#subform[0].txtAddComment[0]");

console.println("Comment: " + util.spansToXML(field.richValue));

]undefined "is the result".

Also tested:

]var field = event.target.getField("form1[0].#subform[0].txtAddComment[0]");

var comments = event.target.getField("form1[0].#subform[0].txtComments[0]");

]comments.richValue = field.richValue;

]"nothing happens, no error, fields don't change nothing"

OK is rich text supported in xfa dynamic forms?

My aim is to be able to take someone's comments, format them and add them to a list of comments (like a log of comments), via javascript.

Can anyone assist? It will be much appreciated.
1 Reply


Former Community Member
send me your form,will try and fix it for you