Change Font Color for Row based on Dropdown in LiveCycle

BernieBour

04-04-2018

I want to change the font color in a dynamic table based on a dropdown.  The code I have only works for the cell.  I would like the font for the entire row to change.

DropDownList1 - Change event:

if (xfa.event.newText == "Completed"){this.font.fill.color.value = "255,0,0";}

else if (xfa.event.newText == "Modified"){this.font.fill.color.value = "0,0,255";}

else if (xfa.event.newText == "New"){this.font.fill.color.value = "0,128,0";}

  else {this.font.fill.color.value = "0,0,0";}

Thanks for your help!

Accepted Solutions (1)

Accepted Solutions (1)

BernieBour

04-04-2018

I put the following code in the other cells on the Enter event and it worked:

if (DropDownList1.rawValue == "Completed"){this.font.fill.color.value = "255,0,0";}
else if (DropDownList1.rawValue == "Modified"){this.font.fill.color.value = "0,0,255";}
else if (DropDownList1.rawValue == "New"){this.font.fill.color.value = "0,128,0";}
  else {this.font.fill.color.value = "0,0,0";}

Answers (0)