I came up with something quite different. Could you look this over and see if there's a flaw in the logic? It's in the "ready:layout" event of Submit button. It seems to work, but I would appreciate another opinion.
if (Page1.execValidate() == true) {
this.fillColor = "0,128,0"; //green fill
this.caption.font.fill.color.value = "255,255,255"; //white font
}
else {
this.fillColor = "240,240,240"; //gray fill
this.caption.font.fill.color.value = "70,70,70"; //dark gray font
}
And, if you don't mind, could you explain the logic in line 2 of your script? I don't understand what it's testing for there. Thanks again.