Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Change Font Color for Row based on Dropdown in LiveCycle

BernieBour
Level 2
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
BernieBour
Correct answer by
Level 2
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
BernieBour
Correct answer by
Level 2
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