Hi,
Yes, the following in the enter event would work:
var vName = this.somExpression; // gets the full SOM expression for the object...
var fieldObj = xfa.resolveNode(vName);
var fld = fieldObj.ui.resolveNode("#textEdit"); // see ui codes below
fld.border.fill.color.value = "255,255,255";
/* Check the type of object and change the .ui reference:
Date field = #dateTimeEdit
Dropdown = #choiceList
Checkbox = #checkButton
Text field = #textEdit
Numeric field = #numericEdit
*/
A similar script is in the exit event, with an if statement to see if a value has been inputted.
Hope that helps,
N.
ps a word of caution, different fonts can vastly increase the file size. Try Myriad Pro, which is more efficient...