Sending value to custom field
Closed this issue · 3 comments
smbmohanty commented
In one of our DocuSign template we have two signers. For the first signer there is a text field need to be filled first.
I tried to call the DocuSign API, here is the code snippet.
client = DocusignRest::Client.new
@envelope_response = client.create_envelope_from_template(
status: 'sent',
email: {
subject: "The test email subject envelope",
body: "Envelope body content here"
},
template_id: "cf2a5306-xxxx-4ee5-xxxx-xxxxxxxxxx",
signers: [
{
embedded: false,
name: 'Sxxxx Mxxxx',
email: 'xxxxxxxx@gmail.com',
role_name: 'Issuer',
text_tabs: [
{
label: 'full_name',
name: 'full_name',
value: 'Another Person Name'
}
]
},
{
embedded: false,
name: 'Another Person',
email: 'xxxxxxxx@gmail.com',
role_name: 'Attorney',
text_tabs: [
{
label: 'Full Name',
name: 'Full Name',
value: 'John Doe'
}
]
}
]
)
But unfortunately it is not working. Please suggest what did I miss?
jondkinney commented
Are you bundling to the master branch of the repo?
In Gemfile:
gem 'docusign_rest', github: 'jondkinney/docusign_rest'
There hasn't been a proper gem release in a while, so this is the best way to get the current code.
smbmohanty commented
It worked 👍 . Thank you Jon.
tcopeland commented
Sounds like this is sorted out, so I'll close this. And we're planning on getting a new release out here shortly, woot!