Copy link to clipboard
Copied
Dear all,
maybe you can help me with this topic. I have a pdf where one person has to fillout field and sign it, than send it to a second person. The second person checks it and sign it too.
Now I would like to generate an automatic mail that attach the document and send it to the first person back using the mail address inside the first signature. How do I do that? Is there any possibility?
Currently I am using this javascript:
for (var i = 0; i < this.numFields; i++)
{
this.getField(getNthFieldName(i)).readonly=true;
}
var c_name = this.getField('name').value;
var betreff = c_name;
var body = 'Body text bla bla bla';
this.mailDoc(false, "test@domain.de", "", "", betreff, body );
Thank you very much, I appreciate your help,
Stay safe and have a nice day,
André
Thanks, that worked!
If I would like to get the name out of the signature as well how should I have to change it?
Copy link to clipboard
Copied
You can retrieve the email address of the signer using this code:
this.getField("SignatureFieldName").signatureInfo().name.match(/<(.+)>$/)[1]
Copy link to clipboard
Copied
Thanks, that worked!
If I would like to get the name out of the signature as well how should I have to change it?
Copy link to clipboard
Copied
Use:
signatureInfo().name.match(/^(.+)</)[1]
Copy link to clipboard
Copied
Thanks! 🙂