I am developing a XFA form that includes signatures and I get the following error message.
Does anyone have any idea what is going on?
My other signature fields in the same form work as expected.
UPDATE:
actually, it seems to be linked to the following script in the pre-sign event.
var sPopUpTitle = "SAVING BEFORE SIGNING";
var sPopUpQuestion = "Do you want to save an unsigned copy of the record? /n/nAfter the form is signed, it is no longer editable; the Submitter signature cannot be cleared. You should save an unsigned copy of the record if the status of the nonconformities is still subject to change";
if (xfa.host.messageBox(sPopUpQuestion,sPopUpTitle,2,2)== "4"){
app.execMenuItem("SaveAs");
}
The same script on a simple button works fine, I suspect SaveAs is incompatible with the Pre-Sign event.
Am I correct?