问题
I have created a template with recipient and added text tabs in it, I'm using python api to send a the document using template id for signing. If I send document to the recipient attached to the template I get the document with tabs (text and checkboxes) populated but if I send it to some other email the tabs are not being populated.
What I want is to be able to send the document to any email without them being added as recipient in the template, my question is:
Is it possible to send signing request email without adding it to template as recipient and have the tabs populated? or do I have to always add the email I'm sending signing request as recipient in the template to have the tabs populated
here is the code
radio_group = RadioGroup(
group_name="patient_gender",
radios=[Radio(value="Male", selected="true")]
)
text = Text(
tab_label="patient_address", value="123 Main St. San Francisco, CA 94105"
)
text = Text(
tab_label="patient_address", value="123 Main St. San Francisco, CA 94105"
)
tabs = Tabs(
radio_group_tabs=[radio_group],
text_tabs=[text]
)
signer = TemplateRole( # The signer
email=signer_email, name=signer_name,
tabs=tabs,
role_name='signer'
)
envelope_definition = EnvelopeDefinition(
email_subject="Please sign this document sent from the Python SDK",
template_id="e8886b8c-6433-4c14-963b-aed5811df098",
template_roles=[signer],
status="sent" # requests that the envelope be created and sent.
)
# Ready to go: send the envelope request
api_client = ApiClient()
api_client.host = base_path
api_client.set_default_header("Authorization", "Bearer " + access_token)
envelope_api = EnvelopesApi(api_client)
results = envelope_api.create_envelope(account_id, envelope_definition=envelope_definition)
return results
回答1:
You need to change your template. The recipient should be a placeholder recipient, which means that recipient has no email or name, just a role name. That would allow you to provide the information from the API in real time.
来源:https://stackoverflow.com/questions/59669127/requesting-document-signing-via-email-using-template-doesnt-populate-tab-values