cancel
Showing results for 
Search instead for 
Did you mean: 

Interpreting styles in dynamic standard texts

0 Kudos

Hello Everyone,

I have a requirement in adobe forms where we need to interpret the styles dynamically. In SO10 standard text usually we have an option to include another standard text using the below option



which will add text in below format

Now I need to interpret the above text with styles like Bold,Underline etc in the forms dynamically including the Included standard text. That means included standard text should also be expanded automatically.


I have tried creating text node and bind standard text details in adobe form and maintained the style name in style section. However styles are interpreted correctly to the text but it couldn't interpret the included standard text.


If I try to interpret included standard text via driver program issue is that we cannot interpret styles.



So can you guys please help us in providing some workaround/solution ASAP ?


Accepted Solutions (0)

Answers (1)

Answers (1)

former_member531036
Participant
0 Kudos

Hi Pushyami,

Did you set your field to 'Rich Text'?

Julie

0 Kudos

Hi Julie,

Yeah I did maintain the field format as Rich text. It doesn't work.

Thanks !!

Pushyami

prajeshdesai
Contributor
0 Kudos

Try below javascript on docClose event,


data.#subform[0].TextField1::docClose - (JavaScript, client)

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);

also go through my blog .

Hope this helps.