Javascript for digital signature prompt
Copy link to clipboard
Copied
Is there a script that will give you this popup?
Copy link to clipboard
Copied
Are you using a Signature field for this?
Copy link to clipboard
Copied
Yes
Copy link to clipboard
Copied
Then yes:
this.getField("Signature1").signatureSign({ bUI: true})
Copy link to clipboard
Copied
I placed in in mouseup, but it didn't work
Copy link to clipboard
Copied
Maybe I didn't explain it well. I have a signature field (Signature1) and a text field (text1). I want to do a mouse up event in the text fields to prompt the signature popup for the signature field when someone clicks on the text field.
Copy link to clipboard
Copied
You must run this code from a privileged context. See:
https://acrobatusers.com/tutorials/trust-and-privilege-in-acrobat-scripts
https://acrobatusers.com/tutorials/using_trusted_functions
Copy link to clipboard
Copied
Okay thanks. I tried making adjustments based on
var ReplaceLastPage = app.trustedFunction( function(cPath) { app.beginPriv(); this.replacePages(this.numPages-1, cPath); app.endPriv(); });
but can't seem to get it to work. I will keep trying to figure it out
Copy link to clipboard
Copied
Why want you replace a page?
Copy link to clipboard
Copied
Sorry, that is just a example used on the article you sent....I used it as a guide.

