Hi,
I´m creatin a envelope with 2 documents using the PHP SDK. Each document requires the signature of a signatory and a witness (the same signatory and the same witness for both documents).
When I send it, the signatory receives it correctly, but a window appears asking him to fill in the witness twice (as if there were two witnesses), and therefore he cannot send it to just one person to be a witness.
I am using the code below. If anyone can help me, I would be grateful.
//Signer
$sign_here_tab = new SignHere(e
'anchor_string' => "**sign_".$signer->id."**",
'anchor_units' => "pixels",
'anchor_x_offset' => "0",
'anchor_y_offset' => "0"
]);
$sign_here_tabs = =$sign_here_tab];
$tabs = new Tabs(s
'sign_here_tabs' => $sign_here_tabs
]);
$sig = new Signer(r
'email' => $signer->email,
'name' => $signer->name,
'recipient_id' => $r_id,
'tabs' => $tabs,
'email_notification' => new RecipientEmailNotification(n
'email_subject' => 'Assinatura de novo contrato Arklok',
'email_body' => 'Olá '.$signer->name.' você está recebendo um documento para ser assinado como contratante'
])
]);
$signersg] = $sig;
//Witness
$sign_here_tab = new SignHere(H
'anchor_string' => "**sign_".$witness->id."**",
'anchor_units' => "pixels",
'anchor_x_offset' => "0",
'anchor_y_offset' => "0"
]);
$sign_here_tabs = b$sign_here_tab];
$tabs = new Tabs(T
'sign_here_tabs' => $sign_here_tabs
]);
$wit = new Witness(n
'email' => $witness->email,
'name' => $witness->name,
'witness_for' => $s_id,
'recipient_id' => $r_id,
'tabs' => $tabs,
'email_notification' => new RecipientEmailNotification(t
'email_subject' => 'Assinatura de novo contrato Arklok',
'email_body' => 'Olá '.$witness->name.' você está recebendo um documento para ser assinado como testemunha'
])
]);
$witnessesi] = $wit;
// Recipients
$recipients = new Recipients(i'signers' => $signers,'witnesses'=>$witnesses]);
//Document 1
$composite_template_contract = new CompositeTemplate(e
'composite_template_id' => "1",
'document' => $doc_contract,
'inline_templates' => 'new InlineTemplate(e
'recipients' => $recipients,
'sequence' => "1"
])]
]);
// Document 2
$composite_template_term = new CompositeTemplate(e
'composite_template_id' => "2",
'document' => $doc_term,
'inline_templates' => 'new InlineTemplate(e
'recipients' => $recipients,
'sequence' => "2"
])]
]);
$composite_templates = l$composite_template_contract,$composite_template_term];
$envelope_definition = new EnvelopeDefinition(i
'composite_templates' => $composite_templates,
'email_subject' => "Assinatura de documento Arklok",
'email_blurb' => 'Documento para assinar',
'status' => "sent"
]);