Skip to content

Commit aad861b

Browse files
paigesrossimeihDS
andauthored
sms text changes (#65)
* sms text changes * fixing sizing on small text * added step comments * move Step 2 comments Co-authored-by: meihDS <70775251+meihDS@users.noreply.github.com>
1 parent 23c406e commit aad861b

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

lib/eSignature/controllers/eg037SmsDelivery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ eg037SmsDelivery.createController = async (req, res) => {
7373
// which need an envelopeId
7474
res.render('pages/example_done', {
7575
title: "Envelope sent",
76-
h1: "Envelope sent",
76+
h1: "Request a signature by SMS delivery",
7777
message: `The envelope has been created and sent!<br/>Envelope ID ${results.envelopeId}.`
7878
});
7979
}

lib/eSignature/examples/smsDelivery.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ const smsDelivery = async (args) => {
2222
let envelopesApi = new docusign.EnvelopesApi(dsApiClient),
2323
results = null;
2424

25-
// Step 1. Make the envelope request body
25+
// Make the envelope request body
2626
let envelope = makeEnvelope(args.envelopeArgs);
2727

28-
// Step 2. call Envelopes::create API method
28+
// call Envelopes::create API method
2929
// Exceptions will be caught by the calling function
30+
// Step 3 start
3031
results = await envelopesApi.createEnvelope(args.accountId, {
3132
envelopeDefinition: envelope,
3233
});
34+
// Step 3 end
3335
let envelopeId = results.envelopeId;
3436

3537
console.log(`Envelope was created. EnvelopeId ${envelopeId}`);
@@ -43,6 +45,7 @@ const smsDelivery = async (args) => {
4345
* @returns {Envelope} An envelope definition
4446
* @private
4547
*/
48+
// Step 2 start
4649
function makeEnvelope(args) {
4750
// Data for this method
4851
// args.signerName
@@ -212,5 +215,5 @@ function document1(args) {
212215
</html>
213216
`;
214217
}
215-
218+
// Step 2 end
216219
module.exports = { smsDelivery };

views/pages/examples/eg037SmsDelivery.ejs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
<% include ../../partials/examplesHead %>
22

3-
<h4>37. Send an envelope with a remote (email) signer and cc recipient</h4>
4-
<p>The envelope includes a pdf, Word, and HTML document. Anchor text
5-
(<a href="https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/tabs/auto-place/">AutoPlace</a>)
6-
is used to position the signing fields in the documents.
3+
<h4>37. Request a signature by SMS delivery</h4>
4+
<p>Sends a signature request via an SMS message.
75
</p>
8-
<p>This is a general example of creating and sending an envelope (a signing request) to a recipient and notifying that recipient via SMS delivery.</p>
96

10-
<% include ../../partials/docBody %>
7+
<% include ../../partials/docBody %>
118

129
<p>API method used:
1310
<a target='_blank' href="https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopes/create/">Envelopes::create</a>.
@@ -19,13 +16,13 @@
1916
<div class="form-group">
2017
<label for="countryCode">Signer Country Code</label>
2118
<input type="tel" class="form-control" id="countryCode" name="countryCode"
22-
aria-describedby="accessHelp" placeholder="1" required
19+
aria-describedby="accessHelp" placeholder="1" required />
2320
<small id="accessHelp" class="form-text text-muted">The country code for the phone number below.</small>
2421
</div>
2522
<div class="form-group">
2623
<label for="phoneNumber">Signer Phone Number</label>
2724
<input type="tel" class="form-control" id="phoneNumber" name="phoneNumber"
28-
aria-describedby="accessHelp" placeholder="415-555-1212" required
25+
aria-describedby="accessHelp" placeholder="415-555-1212" required />
2926
<small id="accessHelp" class="form-text text-muted">This phone number will receive a notification. We'll never share your phone number with anyone else.</small>
3027
</div>
3128
<div class="form-group">
@@ -36,13 +33,13 @@
3633
<div class="form-group">
3734
<label for="ccCountryCode">CC Country Code</label>
3835
<input type="tel" class="form-control" id="ccCountryCode" name="ccCountryCode"
39-
aria-describedby="accessHelp" placeholder="1" required
36+
aria-describedby="accessHelp" placeholder="1" required />
4037
<small id="accessHelp" class="form-text text-muted">The country code for the phone number below.</small>
4138
</div>
4239
<div class="form-group">
4340
<label for="ccPhoneNumber">CC Phone Number</label>
4441
<input type="tel" class="form-control" id="ccPhoneNumber" name="ccPhoneNumber"
45-
aria-describedby="accessHelp" placeholder="415-555-1212" required
42+
aria-describedby="accessHelp" placeholder="415-555-1212" required />
4643
<small id="accessHelp" class="form-text text-muted">This phone number will receive a notification. We'll never share your phone number with anyone else.</small>
4744
</div>
4845
<div class="form-group">

views/pages/index_esignature_examples.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ then applies the brand to it. <a target='_blank'
293293
</p>
294294

295295
<h2>Premium Features</h2>
296-
<h4 id="example037">37. <a href="eg037">Send an envelope by SMS delivery</a></h4>
296+
<h4 id="example037">37. <a href="eg037">Request a signature by SMS delivery</a></h4>
297297
<p>
298-
Demonstrates how to send a signature request via an SMS message.
298+
Sends a signature request via an SMS message.
299299
</p>
300300
<p>
301301
API method used:

0 commit comments

Comments
 (0)