How to create an envelope for offline signing (from a template)
This topic demonstrates how to create an envelope from a template for offline signing.
Required data
Running the code in this how-to requires this data:
Step 1. Log in to Docusign
To make the API call shown in this how-to, you must be logged in to Docusign.
See How to log in to Docusign from your app for details.
Step 2. Cache template
Use the method shown to cache the template you wish to use to construct your envelope.
Step 3. Create envelope defaults
When creating an envelope definition with a template, the documents, tabs, and most of the other envelope data will be automatically populated by your chosen template. To create an envelope from a template, you must:
- Specify the ID of the template.
- Specify the names, emails, and role names for each role in the template.
- Provide a custom string to be assigned as the value of any tab objects identified by {TAB_LABEL} that you wish to override.
Note: Only text-based tabs are supported for tab defaults.
Step 4. Create the envelope
Next, use the envelope defaults you created in the previous step to create an envelope.
Expected response
If the account used for authentication is set as the signer for the envelope, you will see the Android SDK’s native offline signing screen, and be prompted to complete the offline signing process.
Once signing has been completed, or if the envelope has a remote signer, the envelope will be cached directly for sync later.