To change the boder, add the following script on the exit event:
if(TextField1.rawValue == "Desired Value")
TextField1.border.edge.color.value = "255,0,0";
.
.
To fill the color, add the following script on the exit event:
if(TextField1.rawValue == "Desired Value")
TextField1.border.fill.color.value = "255,0,0";