3

I am trying to underline text using javascript in an adobe form. My current script is:

var a = this.getField("options").value;
of (a == "a") {
 event.value = (" model a paragraph ... ");

How can I get the first line in the paragraph to be underlined ?

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
smembrino
  • 39
  • 1

1 Answers1

1

Use underline attribute of node font property:

 xfa.resolveNode("data.MainPage.BillingReport.Invoices.DATA["+i+"].QUANTITY").font.underline = "1";
Suncatcher
  • 10,355
  • 10
  • 52
  • 90