I would need to validate my digital signature field upon opening the pdf form. I know there is an option to auto-verify signatures on opening, but some how that is not working.
I tried putting the signatureValidate() method on the doc:ready event, but that will cause an error.
I have tried putting this method to run when I click a button and that works.
So may I ask where to put this method so that I can validate digital signatures? Is there a timer function where I can use to wait for the form to be fully loaded (incl. the signature) before invoking the signatureValidate() method?
The last event to fire before giving control to the user is the Form Ready event. Try putting your code there and see if it will work (I do not think it will). I do not think you will be able to validate until the user has control.
Verification can be done automatically by Acrobat. This is the option in acrobat menu Edit--Preferences--Security--Verify Signatures when the document is opened. Answer is not by script but I hope helps to you.
The setTimout is available app.setTimeOut() but any field reference must use the Acroform name and not the xfa name. All fields names must be fully pathed (i.e. for example form1.Page1.signatureField1