i need to enter the signer address in a template docusign as a note field and prefill it when creating the envelope and before sending it. Thanks for help.
there is my php code:
$envelope_definition = new EnvelopeDefinition([
'status' => 'sent', 'template_id' => $this->template_id
]);
# Create the template role elements to connect the signer and cc recipients
# to the template
$signer = new TemplateRole([
'email' => $args['signer_email'],
'name' => $args['signer_name'],
'role_name' => 'signer'
]);
$address_note = new Note(['selected' => 'true', 'tab_label' => 'signer_address', 'value' => $args['signer_address']]); $signer->setTabs(new Tabs([$address_note])); $envelope_definition->setTemplateRoles([$signer]);
and there is the configuration of note field in the dashboard docusign: note field
But the problem is when signing the document i can't see the signer address
When i try to find the tabs in the apropriate template using this php code :
# create the envelope definition with the template_id
$envelope_definition = new EnvelopeDefinition([
'status' => 'sent', 'template_id' => $this->template_id
]);
# Create the template role elements to connect the signer and cc recipients
# to the template
$signer = new TemplateRole([
'email' => $args['signer_email'],
'name' => $args['signer_name'],
'role_name' => 'signer'
]);
dd($signer->getTabs());
i got null as result.