Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Rich Text in a XML Dynamic Form

Avatar

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

Avatar

Not applicable
send me your form,will try and fix it for you

mergeandfuse@gmail.com

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now