alfredohrv | Posts: 27

documentBuilder.WithDateSigned is not available

0 votes

When I am running my code there is point where I am assigning the X and Y position to the signers, using documentBuilder.WithSignature, but next to the signatures there is a date field that has to be updated automatically, and I am trying to use  documentBuilder.WithDateSigned but it does not exists. What is the alternative for writing the date automatically when signer sign?


Approved Answer
alfredohrv | Posts: 27

Reply to: documentBuilder.WithDateSigned is not available

0 votes

I found a way to do it. I am running a "for" statement, for each TAB, inside a  foreach loop for every signer.  When signing the document the date comes up automatically to the right of the signature by Xoffset points.


documentBuilder.WithSignature(SignatureBuilder.SignatureFor(signer.Email)

                               .OnPage(int.Parse(signatureDetails[i].PageNumber))                                .AtPosition(int.Parse(signatureDetails[i].XPosition), int.Parse(signatureDetails[i].YPosition))                                .WithStyle(signatureDetails[i].SignatureStyle)

                               .WithField(FieldBuilder.SignatureDate()

                               .AtPosition(int.Parse(signatureDetails[i].XPosition) + signatureDetails[i].XOffset,                                 int.Parse(signatureDetails[i].YPosition) + signatureDetails[i].YOffset)

                               .OnPage(int.Parse(signatureDetails[i].PageNumber))

                               .WithFontSize(10)));


alfredohrv | Posts: 27

Reply to: documentBuilder.WithDateSigned is not available

0 votes

Let me rephrase my question: How do I enter only a date on a field after the signer signs, using X and Y positions. See attachment.

 


Attachments

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off