Skip to content

Commit 8f53fab

Browse files
committed
cleaning comments and formatting results page
1 parent 1aaa000 commit 8f53fab

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

launcher-csharp/eSignature/Examples/FocusedView.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static (string, string) SendEnvelopeWithFocusedView(
5454
string envelopeId = results.EnvelopeId;
5555
//ds-snippet-end:eSign44Step3
5656

57-
//ds-snippet-start:eSign44Step5
57+
//ds-snippet-start:eSign44Step6
5858
RecipientViewRequest viewRequest = MakeRecipientViewRequest(signerEmail, signerName, returnUrl, signerClientId, pingUrl);
5959

6060
// call the CreateRecipientView API
@@ -67,7 +67,7 @@ public static (string, string) SendEnvelopeWithFocusedView(
6767

6868
// returning both the envelopeId as well as the url to be used for embedded signing
6969
return (envelopeId, redirectUrl);
70-
//ds-snippet-end:eSign44Step5
70+
//ds-snippet-end:eSign44Step6
7171
}
7272

7373
//ds-snippet-start:eSign44Step4
@@ -114,6 +114,11 @@ public static RecipientViewRequest MakeRecipientViewRequest(string signerEmail,
114114
viewRequest.PingUrl = pingUrl; // optional setting
115115
}
116116

117+
// The FrameAncestors should include the demo or prod link
118+
// for DocuSign, and the site where the document should be embedded.
119+
// The site must have a valid SSL protocol for the embed to work.
120+
// MessageOrigins ncludes the demo or prod link and only
121+
// takes a single string.
117122
viewRequest.FrameAncestors = new List<string> { "https://localhost:44333", "https://apps-d.docusign.com" };
118123
viewRequest.MessageOrigins = new List<string> { "https://apps-d.docusign.com" };
119124

launcher-csharp/eSignature/Views/FocusedView/Embed.cshtml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
<div id="agreement"></div>
1+
2+
<br />
3+
<h2>Embedded document using focused view</h2>
4+
<br />
25

3-
<code>
4-
@ViewBag.Url
5-
@ViewBag.IK
6-
</code>
6+
<div id="agreement"></div>
77

88
@Html.Raw("<script src='https://docucdn-a.akamaihd.net/demo/1ds/libs/@embedded-js/core/latest/dist/bundle.js'></script>")
99

1010
<script>
11-
window.DocuSign.loadDocuSign('52957a8d-ec41-47b1-9c8b-c9527c3d9e2b')
11+
window.DocuSign.loadDocuSign('{INTEGRATION_KEY}')
1212
.then((docusign) => {
1313
const signing = docusign.signing({
14-
url: '@ViewBag.Url',
14+
url: '@ViewBag.Url',
1515
displayFormat: 'focused',
1616
style: {
1717
/** High-level variables that mirror our existing branding APIs. Reusing the branding name here for familiarity. */
@@ -26,7 +26,7 @@
2626
2727
/** High-level components we allow specific overrides for */
2828
signingNavigationButton: {
29-
finishText: 'Complete',
29+
finishText: 'You have finished the document! Hooray!',
3030
position: 'bottom-center'
3131
}
3232
}

0 commit comments

Comments
 (0)