Skip to content

Commit 807bb71

Browse files
committed
added EnvelopeViewSettings
1 parent d1bf48e commit 807bb71

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

launcher-csharp/eSignature/Examples/EmbeddedSending.cs

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,44 @@ public static string SendEnvelopeUsingEmbeddedSending(string signerEmail, string
4545
// Step 3. create the sender view
4646
// Call the CreateSenderView API
4747
// Exceptions will be caught by the calling function
48-
ReturnUrlRequest viewRequest = new ReturnUrlRequest
48+
EnvelopeViewSettings viewSettings = new EnvelopeViewSettings
49+
{
50+
StartingScreen = startingView,
51+
SendButtonAction = "send",
52+
ShowBackButton = "false",
53+
BackButtonAction = "previousPage",
54+
ShowHeaderActions = "false",
55+
ShowDiscardAction = "false",
56+
LockToken = string.Empty,
57+
RecipientSettings = new EnvelopeViewRecipientSettings
58+
{
59+
ShowEditRecipients = "false",
60+
ShowContactsList = "false",
61+
},
62+
DocumentSettings = new EnvelopeViewDocumentSettings
63+
{
64+
ShowEditDocuments = "false",
65+
ShowEditDocumentVisibility = "false",
66+
ShowEditPages = "false",
67+
},
68+
TaggerSettings = new EnvelopeViewTaggerSettings
69+
{
70+
PaletteSections = "default",
71+
PaletteDefault = "custom",
72+
},
73+
TemplateSettings = new EnvelopeViewTemplateSettings
74+
{
75+
ShowMatchingTemplatesPrompt = "true",
76+
},
77+
};
78+
79+
EnvelopeViewRequest viewRequest = new EnvelopeViewRequest
4980
{
5081
ReturnUrl = returnUrl,
82+
ViewAccess = "envelope",
83+
Settings = viewSettings,
5184
};
85+
5286
ViewUrl result1 = envelopesApi.CreateSenderView(accountId, envelopeId, viewRequest);
5387

5488
// Switch to Recipient and Documents view if requested by the user

launcher-csharp/eSignature/Views/EmbeddedSending/eg011.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
</label>
2828

2929
<select id="startingView" name="startingView" class="form-control">
30-
<option value="tagging" selected>Tagging view</option>
31-
<option value="recipient">Recipient &amp; Documents view</option>
30+
<option value="Tagger" selected>Tagging view</option>
31+
<option value="Prepare">Prepare view</option>
3232
</select>
3333
</div>
3434
<div class="form-group">

launcher-csharp/launcher-csharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<ItemGroup>
3939
<PackageReference Include="DocuSign.Admin" Version="1.4.0" />
4040
<PackageReference Include="DocuSign.Click" Version="1.2.2" />
41-
<PackageReference Include="DocuSign.eSign.dll" Version="6.9.0-rc1" />
41+
<PackageReference Include="DocuSign.eSign.dll" Version="7.0.0-rc2" />
4242
<PackageReference Include="DocuSign.Monitor" Version="1.1.1" />
4343
<PackageReference Include="DocuSign.Maestro" Version="1.0.0-rc1" />
4444
<PackageReference Include="DocuSign.Rooms" Version="1.3.0" />

0 commit comments

Comments
 (0)