docusign / code-examples-node

Node.js code examples and launcher
https://developers.docusign.com/
MIT License
66 stars 53 forks source link

How to create Date Signed Tab (Text Field) in the HTML template #24

Closed gaurij369 closed 3 years ago

gaurij369 commented 3 years ago

There is no example with regards to this in the Node SDK example list. Also can I add a date picker? Please do reply as I am unable to figure this out and I am looking for a while.

ivdinkovds commented 3 years ago

Hi @gaurij369 you can add "Date Signed" in Node using something like the snippet below ( depend on your use case ) let dateSignedTab1 = docusign.DateSigned.constructFromObject({ anchorString: "signer1date", anchorYOffset: "-6", fontSize: "Size12", name: "Date Signed", recipientId: "1", tabLabel: "date_signed" }); The date tab is automatically populated when the signer signs the document. You can not control this date as this is part of the signing process.

Regrading a datepicker tab, currently there is no such functionality.

As alternative to datepicker tab, you can integrate datepicker in your front end, collect the date and populate text field tab. something like textCutomDate = docusign.Text.constructFromObject({ anchorString: '/custom_date/', anchorUnits: 'pixels', anchorYOffset: '-9', anchorXOffset: '5', font: 'helvetica', fontSize: 'size11', bold: 'true', value: date_collected_from_datepicker, locked: 'false', tabId: 'custom_date_id', tabLabel: 'Custom date' })