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.
Yup, Form:ready does not work. Actually, I think the last event to be fired is the Doc:ready event. That also doesn't work.
Asiye, I have tried that but some how the auto-verification just did not start when I open the document.
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
Thanks for the reply. I tried using app.setTimeOut("myFunc()", 5000); ....but to no avail. The function just wasn't invoked.
I even tried:
app.setTimeOut("app.alert("test")",1000) and place this function in a button mousedown event. Upon clicking the button, nothing happens.
Is this the right way to use the setTimeOut function? Hope to hear from someone. Thanks lots.
Here's a simple clock updated per second in a static text field.