How do you set a text fields strokeColor to the default setting that is in each users individual preference "Required Fields Highlight Color"
I need to keep the field set as not required.
this.getField("myField_Required").required = true;
this.getField("myField_Not_Required").required = false;
this.getField("myField_Not_Required").strokeColor = syntax for required fields highlight color setting in each individual users preference setting
Not possible. JS does not have access to this property.
Is it possible to get the required field highlight color from a required field on the form?
I thought so as well, so I tested it out, but no, the strokeColor property of the field is not changed when the validation fails...
So it seems you're out of luck, I'm afraid. Just use red, it's the safest bet...