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

Change Font Color for Row based on Dropdown in LiveCycle

Avatar

Avatar
Validate 1
Level 1
BernieBour
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
BernieBour
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
BernieBour
Level 1

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)

Avatar

Avatar
Validate 1
Level 1
BernieBour
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
BernieBour
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
BernieBour
Level 1

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)