Good afternoon,
Try the following:-
if ($.boundItem(xfa.event.newText) == "Disapproved") {
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;
if ($.boundItem(xfa.event.newText) == "Approved") {
if (xfa.host.version < 8) {
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;