Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
paigesrossi committed Feb 13, 2024
2 parents 82025dc + 5f36da8 commit 45157a0
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 25 deletions.
14 changes: 14 additions & 0 deletions launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ public static class CreateAndEmbedFormService
{
public static WebFormSummaryList GetForms(Client.DocuSignClient docuSignClient, string accountId)
{
<<<<<<< HEAD

Check failure on line 20 in launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered
//ds-snippet-start:WebForms1Step3
=======

Check failure on line 22 in launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e

Check failure on line 23 in launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered
FormManagementApi formManagementApi = new FormManagementApi(docuSignClient);
FormManagementApi.ListFormsOptions listFormsOptions = new FormManagementApi.ListFormsOptions();
listFormsOptions.search = "Web Form Example Template";
return formManagementApi.ListForms(accountId, listFormsOptions);
<<<<<<< HEAD

Check failure on line 28 in launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered
//ds-snippet-end:WebForms1Step3
=======

Check failure on line 30 in launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e

Check failure on line 31 in launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered
}

public static void AddTemplateIdToForm(string fileLocation, string templateId)
Expand Down Expand Up @@ -75,11 +81,19 @@ public static List<EnvelopeTemplate> GetTemplatesByName(
string accountId,
string templateName)
{
<<<<<<< HEAD

Check failure on line 84 in launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered
=======

Check failure on line 85 in launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered
//ds-snippet-start:WebForms1Step3
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e

Check failure on line 87 in launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered
var templatesApi = new TemplatesApi(docuSignClient);
var listTemplateOptions = new TemplatesApi.ListTemplatesOptions();
listTemplateOptions.searchText = templateName;

EnvelopeTemplateResults templates = templatesApi.ListTemplates(accountId, listTemplateOptions);
<<<<<<< HEAD

Check failure on line 93 in launcher-csharp/WebForms/Examples/CreateAndEmbedFormService.cs

View workflow job for this annotation

GitHub Actions / build

Merge conflict marker encountered
=======
//ds-snippet-end:WebForms1Step3
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e

return templates.EnvelopeTemplates;
}
Expand Down
20 changes: 20 additions & 0 deletions launcher-csharp/WebForms/Views/CreateAndEmbedForm/Embed.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ async function loadWebform() {
var instanceToken = '@ViewBag.InstanceToken'.replace(/&#x2B;/g, "+");
const { loadDocuSign } = window.DocuSign
const docusign = await loadDocuSign('@ViewBag.IntegrationKey');
<<<<<<< HEAD
=======
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e
const webFormOptions = {
//Used with the runtime API workflow, for private webforms this is needed to render anything
instanceToken: instanceToken,
Expand All @@ -46,12 +50,25 @@ async function loadWebform() {
minHeight: "1500px",
},
//Controls the auto resize behavior of the iframe
<<<<<<< HEAD
autoResizeHeight: true
=======
autoResizeHeight: true,
//These values are passed to the iframe URL as query params
tracking: {
"tracking-field": "tracking-value",
},
//These values are passed to the iframe URL as hash params
hidden: {
"hidden-field": "hidden-value",
},
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e
};
const webFormWidget = docusign.webforms({
url: "@ViewBag.Url",
options: webFormOptions,
<<<<<<< HEAD
});
//Basic milestones in this workflow
Expand Down Expand Up @@ -90,6 +107,9 @@ async function loadWebform() {
// event = { type: 'userActivity', activityType: 'click' | 'keydown' };
console.log('debug form userActivity', event);
});
=======
})
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e
webFormWidget.mount("#docusign");
}
Expand Down
25 changes: 0 additions & 25 deletions launcher-csharp/launcher-csharp.sln

This file was deleted.

4 changes: 4 additions & 0 deletions manifest/CodeExamplesManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,11 @@
"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."
}
],
<<<<<<< HEAD
"SkipForLanguages":"java;python;node;ruby;php"
=======
"SkipForLanguages":"ruby;"
>>>>>>> 5f36da8a1ae836a8e2e7fb3d56b089bec481c50e
}
]
}
Expand Down

0 comments on commit 45157a0

Please sign in to comment.