cancel
Showing results for 
Search instead for 
Did you mean: 

BOLD/ ITALIC font in adobe form dynamically

nishantbansal91
Active Contributor
0 Kudos

  Hi Team,

I want to make the font as a BOLD in ADOBE form dynamically.

I was able to make it as BOLD but not able to make italic.

xfa.resolveNode("data.MainPage.Receipts_tax_free_2RC_1PC.Receipts_tax_free_2RC_1PC.DATA["+i+"].EXP_TYPE_NAME").font.weight = "bold";

How we can make the same as italic.

and can we make the same  BOLD + ITALIC.

Thanks

NIshant

Accepted Solutions (1)

Accepted Solutions (1)

former_member469314
Participant

Just use the posture attribute instead of the weight attribute:

xfa.resolveNode("data.MainPage.Receipts_tax_free_2RC_1PC.Receipts_tax_free_2RC_1PC.DATA["+i+"].EXP_TYPE_NAME").font.posture = "italic";

nishantbansal91
Active Contributor
0 Kudos

Hi Rebekka,


Thanks for your reply,

It's working, Can we have any information about all the attribute all the font object.

Can we change the binding at runtime.?

Thanks

Nishant

former_member469314
Participant
0 Kudos

For information on attributes use the Scripting reference:

Adobe LiveCycle ES3 * font

Additionally, if you use JavaScript, you should see the list of attributes as autocomplete in the LifeCycle Designer after you type the dot after font.

What do you mean by change the binding? Change the data binding of a field?

Answers (0)