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.
1//Signer2$sign_here_tab = new SignHere([3 'anchor_string' => "**sign_".$signer->id."**",4 'anchor_units' => "pixels",5 'anchor_x_offset' => "0",6 'anchor_y_offset' => "0"7 ]);8 $sign_here_tabs = [$sign_here_tab];9 $tabs = new Tabs([10 'sign_here_tabs' => $sign_here_tabs11 ]);1213 $sig = new Signer([14 'email' => $signer->email,15 'name' => $signer->name,16 'recipient_id' => $r_id,17 'tabs' => $tabs,18 'email_notification' => new RecipientEmailNotification([19 'email_subject' => 'Assinatura de novo contrato Arklok',20 'email_body' => 'Olá '.$signer->name.' você está recebendo um documento para ser assinado como contratante'21 ])22 ]);23 $signers[] = $sig;2425//Witness2627$sign_here_tab = new SignHere([28 'anchor_string' => "**sign_".$witness->id."**",29 'anchor_units' => "pixels",30 'anchor_x_offset' => "0",31 'anchor_y_offset' => "0"32 ]);33 $sign_here_tabs = [$sign_here_tab];34 $tabs = new Tabs([35 'sign_here_tabs' => $sign_here_tabs36 ]);3738 $wit = new Witness([39 'email' => $witness->email,40 'name' => $witness->name,41 'witness_for' => $s_id,42 'recipient_id' => $r_id,43 'tabs' => $tabs,44 'email_notification' => new RecipientEmailNotification([45 'email_subject' => 'Assinatura de novo contrato Arklok',46 'email_body' => 'Olá '.$witness->name.' você está recebendo um documento para ser assinado como testemunha'47 ])48 ]);49 $witnesses[] = $wit;5051// Recipients5253$recipients = new Recipients(['signers' => $signers,'witnesses'=>$witnesses]);5455//Document 156 $composite_template_contract = new CompositeTemplate([57 'composite_template_id' => "1",58 'document' => $doc_contract,59 'inline_templates' => [new InlineTemplate([60 'recipients' => $recipients,61 'sequence' => "1"62 ])]63 ]);64// Document 265 $composite_template_term = new CompositeTemplate([66 'composite_template_id' => "2",67 'document' => $doc_term,68 'inline_templates' => [new InlineTemplate([69 'recipients' => $recipients,70 'sequence' => "2"71 ])]72 ]);7374 $composite_templates = [$composite_template_contract,$composite_template_term];75 $envelope_definition = new EnvelopeDefinition([76 'composite_templates' => $composite_templates,77 'email_subject' => "Assinatura de documento Arklok",78 'email_blurb' => 'Documento para assinar',79 'status' => "sent"80 ]);