This is for my own freaking edification because there is nothing on the forum and nothing in the documentation about how to do this and I have to search my own solution each time for the answer when it should be a simple google search away for everyone…
Three parameters should be defined when setting the border property to a field: the kind of border, the thickness, and the color.
These should be enclosed in quotes because they are passed as a string.
so…
element.setBorder.('LineBorder,1,#ff0000')
I’ve specified that the border of my field should be a line ( because really a border could could be any number of things: Etched, Line, SpecialMatte, etc) , it should have thickness of 1 (this can be done in whole integers) and it should have the color blood red because I like my near sighted and color blind users to know that there’s an issue with this field and that they haven’t done something correctly. (Users… who need 'em).
Oh, and if you want to set a border to empty ( I’ve read this should be done on an onShow but I’ve successfully tested it elsewhere), here’s how:
elements.setBorder("EmptyBorder,0,0,0,0")
Sardonic diatribe ends now…