Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Change Font Color for Row based on Dropdown in LiveCycle

Avatar

Level 2

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!

1 Accepted Solution

Avatar

Correct answer by
Level 2

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";}

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

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";}