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

Is there a way to change the font color in the drop donw-list field when the user selects word.

Avatar

Avatar
Boost 1
Level 1
IRMJP
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
IRMJP
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
IRMJP
Level 1

08-09-2015

Help me, please!
I must select the drop donw -list the word and change the font color when the user selects . For example , if the user selects word Disapproved change font color to red , select Approved changes color to green.

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

09-09-2015

Good afternoon,

Try the following:-

if ($.boundItem(xfa.event.newText) == "Disapproved") {

  if (xfa.host.version < 😎 {

  this.resolveNode("$").fontColor = "255, 0, 0";

 

  else {

  var CaptionColorBackup = this.resolveNode("$").caption.font.fill.color.value;

  this.resolveNode("$").font.fill.color.value = "255, 0, 0";

  this.resolveNode("$").caption.font.fill.color.value = CaptionColorBackup;

  

if ($.boundItem(xfa.event.newText) == "Approved") {

  if (xfa.host.version < 😎 {

  this.resolveNode("$").fontColor = "0, 128, 0";

 

  else {

  var CaptionColorBackup = this.resolveNode("$").caption.font.fill.color.value;

  this.resolveNode("$").font.fill.color.value = "0, 128, 0";

  this.resolveNode("$").caption.font.fill.color.value = CaptionColorBackup;

Avatar

Avatar
Boost 1
Level 1
IRMJP
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
IRMJP
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
IRMJP
Level 1

17-09-2015

It worked

thank you.