Skip to content

Commit 34bae9e

Browse files
committed
Added eg templates
1 parent 3ce6339 commit 34bae9e

File tree

5 files changed

+209
-1
lines changed

5 files changed

+209
-1
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<% include ../../partials/head %>
2+
3+
<h4>15. Get the tab data from an envelope</h4>
4+
<p>Get the tab (field) values from an envelope for all of the envelope's recipients.</p>
5+
6+
<p>This method is used to read the updated tab values from
7+
the envelope. The method can be used after the envelope is complete or while it is
8+
still in progress.
9+
</p>
10+
11+
<% if (show_doc) { %>
12+
<p><a target='_blank' href='<%= documentation %>'>Documentation</a> about this example.</p>
13+
<% } %>
14+
15+
<p>API method used:
16+
<a target ='_blank' href="https://developers.docusign.com/esign-rest-api/reference/Envelopes/EnvelopeFormData/get">EnvelopeFormData::get</a>.
17+
</p>
18+
19+
<p>
20+
View source file <a target="_blank" href="<%= sourceUrl %>"><%= sourceFile %></a> on GitHub.
21+
</p>
22+
23+
<% if (envelopeOk) { %>
24+
<p>The last envelope you created with this example launcher will be queried.
25+
Recommendation: use example 9, then this example, since example 9 includes many tabs of different types.</p>
26+
27+
<form class="eg" action="" method="post" data-busy="form">
28+
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
29+
<button type="submit" class="btn btn-primary">Continue</button>
30+
</form>
31+
32+
<% } else { %>
33+
<p>Problem: please first create an envelope using <a href="{{ app_url ~ 'index.php?page=' }}eg009">example 9.</a> <br/>
34+
Thank you.</p>
35+
36+
<form class="eg" action="{{ app_url ~ 'index.php' }}" method="get">
37+
<input type="hidden" name="page" value="eg009"/>
38+
<button type="submit" class="btn btn-primary">Continue</button>
39+
</form>
40+
<% } %>
41+
42+
<% include ../../partials/foot %>
43+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<% include ../../partials/head %>
2+
3+
<h4>16. Set tab values for a envelope</h4>
4+
<p>This example creates an example with both read-only tabs (fields) and tabs that can
5+
be updated by the recipient.</p>
6+
<p>The example also sets custom metadata in the envelope via the envelope custom fields feature.</p>
7+
8+
<% if (showDoc) { %>
9+
<p><a target='_blank' href='<%= documentation %>'>Documentation</a> about this example.</p>
10+
<% } %>
11+
12+
<p>API method used:
13+
<a target ='_blank' href="https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/create">Envelopes::create</a>.
14+
</p>
15+
<p>
16+
View source file <a target="_blank" href="<%= sourceUrl %>"><%= sourceFile %></a> on GitHub.
17+
</p>
18+
19+
<form class="eg" action="" method="post" data-busy="form">
20+
<div class="form-group">
21+
<label for="signer_email">Signer Email</label>
22+
<input type="email" class="form-control" id="signer_email" name="signer_email"
23+
aria-describedby="emailHelp" placeholder="pat@example.com" required
24+
value="{{ signer_email }}">
25+
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
26+
</div>
27+
<div class="form-group">
28+
<label for="signer_name">Signer Name</label>
29+
<input type="text" class="form-control" id="signer_name" placeholder="Pat Johnson" name="signer_name"
30+
value="{{ signer_name }}" required>
31+
</div>
32+
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
33+
<button type="submit" class="btn btn-primary">Submit</button>
34+
</form>
35+
36+
<% include ../../partials/foot %>
37+
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<% include ../../partials/head %>
2+
3+
<h4>17. Set template tab values</h4>
4+
<p>This example sets the value of a template's tabs. It includes setting
5+
radio button and checkbox tabs.</p>
6+
<p>The example also sets custom metadata in the envelope via the envelope custom fields feature.</p>
7+
8+
<% if (showDoc) { %>
9+
<p><a target='_blank' href='<%= documentation %>'>Documentation</a> about this example.</p>
10+
<% } %>
11+
12+
<p>API method used:
13+
<a target ='_blank' href="https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/create">Envelopes::create</a>.
14+
</p>
15+
<p>
16+
View source file <a target="_blank" href="<%= sourceUrl %>"><%= sourceFile %></a> on GitHub.
17+
</p>
18+
19+
<% if (templateOk) { %>
20+
<form class="eg" action="" method="post" data-busy="form">
21+
<div class="form-group">
22+
<label for="signer_email">Signer Email</label>
23+
<input type="email" class="form-control" id="signer_email" name="signer_email"
24+
aria-describedby="emailHelp" placeholder="pat@example.com" required
25+
value="{{ signer_email }}">
26+
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
27+
</div>
28+
<div class="form-group">
29+
<label for="signer_name">Signer Name</label>
30+
<input type="text" class="form-control" id="signer_name" placeholder="Pat Johnson" name="signer_name"
31+
value="{{ signer_name }}" required>
32+
</div>
33+
<div class="form-group">
34+
<label for="cc_email">CC Email</label>
35+
<input type="email" class="form-control" id="cc_email" name="cc_email"
36+
aria-describedby="emailHelp" placeholder="pat@example.com" required
37+
<small id="emailHelp" class="form-text text-muted">The email for the cc recipient must be different from the signer's email.</small>
38+
</div>
39+
<div class="form-group">
40+
<label for="cc_name">CC Name</label>
41+
<input type="text" class="form-control" id="cc_name" placeholder="Pat Johnson" name="cc_name"
42+
required>
43+
</div>
44+
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
45+
<button type="submit" class="btn btn-primary">Submit</button>
46+
</form>
47+
48+
<% } else { %>
49+
<p>Problem: please first create the template by using <a href="{{ app_url ~ 'index.php?page=' }}eg008">example 8.</a> <br/>
50+
Thank you.</p>
51+
52+
<form class="eg" action="{{ app_url ~ 'index.php' }}" method="get">
53+
<input type="hidden" name="page" value="eg008"/>
54+
<button type="submit" class="btn btn-primary">Continue</button>
55+
</form>
56+
<% } %>
57+
58+
<% include ../../partials/foot %>
59+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<% include ../../partials/head %>
2+
3+
<h4>18. Get the custom field data for an envelope</h4>
4+
<p>Get the data values associated with the envelope itself. The custom data fields enable you to
5+
add additional meta-data to the envelope. The custom data fields can be set by the <b>Sender</b>
6+
via the DocuSign web tool, or can be set programmatically. The data can be included in the
7+
envelope's certificate of completion.</p>
8+
9+
<p>This method is used to read the custom field values from
10+
an envelope.
11+
</p>
12+
13+
{% if show_doc %}
14+
<p><a target='_blank' href='<%= documentation %>'>Documentation</a> about this example.</p>
15+
{% endif %}
16+
17+
<p>API method used:
18+
<a target ='_blank' href="https://developers.docusign.com/esign-rest-api/reference/Envelopes/EnvelopeCustomFields/list">EnvelopeCustomFields::list</a>.
19+
</p>
20+
21+
<p>
22+
View source file <a target="_blank" href="<%= sourceUrl %>"><%= sourceFile %></a> on GitHub.
23+
</p>
24+
25+
<% if (envelopeOk) { %>
26+
<p>The last envelope you created with this example launcher will be queried.
27+
Recommendation: use example 16 or 17, then this example, since those examples set a custom data field for the envelope.</p>
28+
29+
<form class="eg" action="" method="post" data-busy="form">
30+
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
31+
<button type="submit" class="btn btn-primary">Continue</button>
32+
</form>
33+
34+
<% } else { %>
35+
<p>Problem: please first create an envelope using <a href="{{ app_url ~ 'index.php?page=' }}eg016">example 16.</a> <br/>
36+
Thank you.</p>
37+
38+
<form class="eg" action="{{ app_url ~ 'index.php' }}" method="get">
39+
<input type="hidden" name="page" value="eg016"/>
40+
<button type="submit" class="btn btn-primary">Continue</button>
41+
</form>
42+
<% } %>
43+
44+
<% include ../../partials/foot %>
45+

views/pages/index.ejs

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@
129129
<a target ='_blank' href="https://developers.docusign.com/esign-rest-api/reference/Envelopes/EnvelopeViews/createRecipient">EnvelopeViews::createRecipient</a>.
130130
</p>
131131

132-
<h2>Payments Example</h2>
133132
<h4 id="example014">14. <a href="eg014">Send an envelope with an order form and payment field</a></h4>
134133
<p>Anchor text
135134
(<a target ='_blank' href="https://support.docusign.com/en/guides/AutoPlace-New-DocuSign-Experience">AutoPlace</a>)
@@ -139,6 +138,31 @@
139138
<a target ='_blank' href="https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/create">Envelopes::create</a>.
140139
</p>
141140

141+
<h4 id="example015">15. <a href="eg015">Get the tab data from an envelope</a></h4>
142+
<p>This example retrieves the tab (field) values from an envelope.</p>
143+
<p>API method used:
144+
<a target ='_blank' href="https://developers.docusign.com/esign-rest-api/reference/Envelopes/EnvelopeFormData/get">EnvelopeFormData::get</a>.
145+
</p>
146+
147+
<h4 id="example016">16. <a href="eg016">Set tab values for a envelope</a></h4>
148+
<p>This example sets the tab (field) values for an envelope including tabs that can and cannot be changed by the signer.</p>
149+
<p>API method used:
150+
<a target ='_blank' href="https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/create">Envelopes::create</a>.
151+
</p>
152+
153+
<h4 id="example017">17. <a href="eg017'">Set template tab values</a></h4>
154+
<p>This example sets the tab (field) values for a template being used by an envelope.</p>
155+
<p>API method used:
156+
<a target ='_blank' href="https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/create">Envelopes::create</a>.
157+
</p>
158+
159+
<h4 id="example018">18. <a href="eg018">List envelope custom metadata field values</a></h4>
160+
<p>This example lists the envelope's custom metadata field values.</p>
161+
<p>API method used:
162+
<a target ='_blank' href="https://developers.docusign.com/esign-rest-api/reference/Envelopes/EnvelopeCustomFields/list">EnvelopeCustomFields::list</a>.
163+
</p>
164+
165+
142166

143167
</div>
144168

0 commit comments

Comments
 (0)