I've found the solution. I had several "page X of Y" fields in my form
and had the signature block set to lock them after signature. Once I
excluded those fields from being locked, the problem resolved itself.
I'd go for something like this on the exit event of the last field in
Row 1:var objWhere1 = xfa.resolveNode("Row1[" + (_Row1.count - 1) +
"]");var objWhere2; _Row1.addInstance();if
(objWhere1.change_checkbox.rawValue == "1"){ _Row2.addInstance();
objWhere2 = xfa.resolveNode("Row2[" + (_Row2.count - 1) + "]");
objWhere2.PN1.rawValue = objWhere1.PN1.rawValue; objWhere2.PN2.rawValue
= objWhere1.PN2.rawValue;}
You'll need to change the "eq" operators to "=", the assignment
operator, in your "then" statements, as well as in the final "else."
"eq" is the alternate form for "==", the equality operator.
getField's argument has to be the complete path to the signature field,
including explicit instance indices, e.g.
"form1[0].page1[0].Main[0].DeptHeadApproval[0]".
After some experimentation, I've found that the problem seems to occur
if there are subforms on a master page. Once I removed the offending
subforms from my form, the signature validated correctly.
You have to use the Acrobat getField method to access signatureValidate.
Since it's an Acrobat method rather than an XFA method, you put
event.target at the beginning of the reference.var oState =
event.target.getField("form1[0].SignatureField[0]").signatureValidate();
I think you need to make felt1 a string. I've tried using somExpression
as the argument to getField as well and it just doesn't work. Try
something like this:var felt1 =
"form1[0].side1[0].sub_Underskrift[0].fld_Underskrift[0]";Hope this
helps.Christopher Allen