Вот часть моего PHP кода, который я использую, который работает, чтобы получить подпись пользователя без проблем. Однако, когда я пытаюсь добавить другое поле для "datestart", я не получаю ничего, что могло бы отображаться в документе PDF внутри Демо Docusign. Поэтому я не могу получить какие-либо другие поля для заполнения в моей подписи Docusign, кроме имени подписи и электронной почты, когда дело доходит до части подписи. Я что-то не так делаю в своем коде? Я использовал примеры кода, предоставленные docusign, но безуспешно.
Дополнительная информация: я просто пытаюсь заполнить базовые c текстовые поля, предоставляемые docusign. На данный момент больше ничего.
# The signer object
$signer = new DocuSign\eSign\Model\Signer([
'email' => $signerEmail, 'name' => $signerName, 'recipient_id' => "1", 'routing_order' => "1",
'client_user_id' => $clientUserId # Setting the client_user_id marks the signer as embedded
]);
$signHere = new DocuSign\eSign\Model\SignHere([ # DocuSign SignHere field/tab
'document_id' => '1',
'page_number' => '2',
'recipient_id' => '1',
'tab_label' => 'Signaturebottom',
'x_position' => '71',
'y_position' => '629'
]);
//Here is the tab+text I am having troubles getting to show up below within my docusign pdf
//Just need extra fields to populate like dates and other peoples names and mailing address etc.
$tripdates = new DocuSign\eSign\Model\Text([
'anchor_string' => '/dateone/', 'anchor_units' => 'pixels',
'anchor_y_offset' => '409', 'anchor_x_offset' => '105',
'font' => "helvetica", 'font_size' => "size11",
'bold' => 'true', 'value' => "test",
'locked' => 'true', # mark the field as readonly
'tab_id' => 'datestart', 'tab_label' => 'datestart'
]);
# Add the tabs to the signer object
# The Tabs object wants arrays of the different field/tab types
$signer->setTabs(new DocuSign\eSign\Model\Tabs(
['sign_here_tabs' => [$signHere],
'text_tabs' => [$tripdates]
]));
# Next, create the top level envelope definition and populate it.
$envelopeDefinition = new DocuSign\eSign\Model\EnvelopeDefinition([
'email_subject' => "Please sign this document",
'documents' => [$document], # The order in the docs array determines the order in the envelope
'recipients' => new DocuSign\eSign\Model\Recipients(['signers' => [$signer]]), # The Recipients object wants arrays for each recipient type
'status' => "sent" # requests that the envelope be created and sent.
]);