Skip to content

Commit 45157a0

Browse files
committed
2 parents 82025dc + 5f36da8 commit 45157a0

File tree

4 files changed

+38
-25
lines changed

4 files changed

+38
-25
lines changed

launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,18 @@ public static class CreateAndEmbedFormService
1717
{
1818
public static WebFormSummaryList GetForms(Client.DocuSignClient docuSignClient, string accountId)
1919
{
20+
<<<<<<< HEAD
2021
//ds-snippet-start:WebForms1Step3
22+
=======
23+
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e
2124
FormManagementApi formManagementApi = new FormManagementApi(docuSignClient);
2225
FormManagementApi.ListFormsOptions listFormsOptions = new FormManagementApi.ListFormsOptions();
2326
listFormsOptions.search = "Web Form Example Template";
2427
return formManagementApi.ListForms(accountId, listFormsOptions);
28+
<<<<<<< HEAD
2529
//ds-snippet-end:WebForms1Step3
30+
=======
31+
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e
2632
}
2733

2834
public static void AddTemplateIdToForm(string fileLocation, string templateId)
@@ -75,11 +81,19 @@ public static List<EnvelopeTemplate> GetTemplatesByName(
7581
string accountId,
7682
string templateName)
7783
{
84+
<<<<<<< HEAD
85+
=======
86+
//ds-snippet-start:WebForms1Step3
87+
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e
7888
var templatesApi = new TemplatesApi(docuSignClient);
7989
var listTemplateOptions = new TemplatesApi.ListTemplatesOptions();
8090
listTemplateOptions.searchText = templateName;
8191

8292
EnvelopeTemplateResults templates = templatesApi.ListTemplates(accountId, listTemplateOptions);
93+
<<<<<<< HEAD
94+
=======
95+
//ds-snippet-end:WebForms1Step3
96+
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e
8397

8498
return templates.EnvelopeTemplates;
8599
}

launcher-csharp/WebForms/Views/CreateAndEmbedForm/Embed.cshtml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ async function loadWebform() {
2929
var instanceToken = '@ViewBag.InstanceToken'.replace(/&#x2B;/g, "+");
3030
const { loadDocuSign } = window.DocuSign
3131
const docusign = await loadDocuSign('@ViewBag.IntegrationKey');
32+
<<<<<<< HEAD
3233
34+
=======
35+
36+
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e
3337
const webFormOptions = {
3438
//Used with the runtime API workflow, for private webforms this is needed to render anything
3539
instanceToken: instanceToken,
@@ -46,12 +50,25 @@ async function loadWebform() {
4650
minHeight: "1500px",
4751
},
4852
//Controls the auto resize behavior of the iframe
53+
<<<<<<< HEAD
4954
autoResizeHeight: true
55+
=======
56+
autoResizeHeight: true,
57+
//These values are passed to the iframe URL as query params
58+
tracking: {
59+
"tracking-field": "tracking-value",
60+
},
61+
//These values are passed to the iframe URL as hash params
62+
hidden: {
63+
"hidden-field": "hidden-value",
64+
},
65+
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e
5066
};
5167
5268
const webFormWidget = docusign.webforms({
5369
url: "@ViewBag.Url",
5470
options: webFormOptions,
71+
<<<<<<< HEAD
5572
});
5673
5774
//Basic milestones in this workflow
@@ -90,6 +107,9 @@ async function loadWebform() {
90107
// event = { type: 'userActivity', activityType: 'click' | 'keydown' };
91108
console.log('debug form userActivity', event);
92109
});
110+
=======
111+
})
112+
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e
93113
94114
webFormWidget.mount("#docusign");
95115
}

launcher-csharp/launcher-csharp.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.

manifest/CodeExamplesManifest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,11 @@
19191919
"ResultsPageText":"Go to your DocuSign account to create the Web Form. Go to 'Forms' in your developer account, select 'New,' and choose 'Upload web form.' Upload the JSON config file 'web-form-config.json' found under the demo_documents folder of this project. You will need to activate the web form before proceeding. Press Continue after doing so."
19201920
}
19211921
],
1922+
<<<<<<< HEAD
19221923
"SkipForLanguages":"java;python;node;ruby;php"
1924+
=======
1925+
"SkipForLanguages":"ruby;"
1926+
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e
19231927
}
19241928
]
19251929
}

0 commit comments

Comments
 (0)