font color in a drop-down list


i have 2 item values - first (1) value font color in black , second (2) value color in red. how go accomplishing this?

if ($.bounditem(xfa.event.newtext) == "2") {

  if (xfa.host.version < 8) {

    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;

  }

}

 

this have far, entire field red. need in order second value text appear in red?



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support