Hi,
you'll need two scripts.
This one in the enter event of the field:
this.border.edge.color.value = "233,0,0";
this.border.edge.thickness = ".5mm"
And this one in the exit event.
this.border.edge.color.value = "0,0,0";
this.border.edge.thickness = "0mm"
Hope this helps!