I have two item values - I would like the first (1) value font color in black and the second (2) value color in red. How do I go about 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 is what I have so far, but the entire field is red. What do I need to do in order to get just second value text to appear in red?
North America
Europe, Middle East and Africa
Asia Pacific