Expand my Community achievements bar.

SOLVED

Error message "Creation of this signature could not be completed"

Avatar

Level 5

I am developing a XFA form that includes signatures and I get the following error message.

MHWinter_0-1661283633177.png

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You need to reader extend your pdf to make this work.

I extended the pdf then the script is executed.

Thanks

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

You need to reader extend your pdf to make this work.

I extended the pdf then the script is executed.

Thanks