Hi guys
I have a form with a text field where the user enters their initials.
To bring the field to the user's attention, I have highlighted the portion of the field where the user would type.
When they click into the text field, I would like this highlighting removed.
Can that be done?
Thank you
Solved! Go to Solution.
Views
Replies
Total Likes
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...
Views
Replies
Total Likes
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...
Views
Replies
Total Likes
Views
Likes
Replies