I have tried the string without the xfa.resolveNode but still no success. I have tried a number of other variations but it does not seem to work. I wonder if there is something in the surrounding script that is causing the problem. Below is the entire script (with the field color change that works):
form1.#subform[0].Button1::click - (JavaScript, client)
var iVar = 0;
var oDoc = event.target
//Legal Name Field.
if ((TextField1.rawValue == null) || (TextField1.rawValue == "")) {
xfa.host.messageBox("Please enter your Legal Name.", "Form Not Complete", 2,0);
xfa.resolveNode("TextField1.ui.#textEdit.border.edge").stroke = "solid";
xfa.resolveNode("TextField1.ui.#textEdit.border.fill.color").value = "255,100,50";
// Set the variable to indicate that this field does not contain data.
iVar = 1;
}
else {
// Reset the fillable area of the text field.
xfa.resolveNode("TextField1.ui.#textEdit.border.edge").stroke = "lowered";
xfa.resolveNode("TextField1.ui.#textEdit.border.fill.color").value = "255,255,255";
}
if (iVar == 0) {
xfa.host.messageBox("Thank you for completing the Questionnaire.", "Form Completed", 3, 0);
}
do you see anything that i am missing?
thanks