I have a form with 2 signature fields. I want to make sure that the first Signature Field has a signature in it before the second can be entered. I think I would use a script in the Pre-Sign event, but I don't know what property to check, or what event to fire off. Any ideas? Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
I have attached a sample form that checks if a signature field is signed (based on a button click). You should be able to use the code on any event.
The code is:
var oState = event.target.getField("form1[0].#subform[0].SignatureField1[0]").signatureInfo().status; // Get the current field's signed state.
if (oState == 0) {
app.alert("The Signature is missing");
}
Regards
Steve
Views
Replies
Total Likes
In the enter event of the 2nd signature field, you could put in a script like:
if (signature1.rawValue == null){
xfa.host.setFocus(signature1);
}
This checks to see whether or not the first signature field has a value in it and directs the cursor to that field if it's empty. Signature fields might be a little different than ordinary fields though, so you should be sure to test this thoroughly.
Views
Replies
Total Likes
I tried that and Signature1.rawValue is null, even if there is a signature there.
Views
Replies
Total Likes
I have attached a sample form that checks if a signature field is signed (based on a button click). You should be able to use the code on any event.
The code is:
var oState = event.target.getField("form1[0].#subform[0].SignatureField1[0]").signatureInfo().status; // Get the current field's signed state.
if (oState == 0) {
app.alert("The Signature is missing");
}
Regards
Steve
Views
Replies
Total Likes
Perfect! Thanks much.
Views
Replies
Total Likes
how might one do the same thing with vba question mark... im opening hundreds of pdfs with signatures in them, and i want to check if all signatures are signed, and if not, how many are left over to sign.
Views
Replies
Total Likes
Views
Likes
Replies