Last active
November 17, 2017 22:58
-
-
Save turlockmike/09bdeb6b92d5be5e6a4dab0eb4ce7d28 to your computer and use it in GitHub Desktop.
Forms SDK Ideas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Example in powerforms for example | |
var el = $("#form"); | |
var data = RetrieveFormData(); | |
forms = new FormSDK(el, data); | |
forms.Start().then(function(results) { | |
if (results.age > 50) { | |
DocuSignAPI.sendEnvelope({template: 'Senior Template', name: results.name, email: results.email}); | |
} else { | |
DocuSignAPI.sendEnvelope({template: 'Junior Template', name: results.name, email: results.email}); | |
} | |
}); | |
//Example in Signing | |
Signing.routeTo("forms-section"); | |
var forms = new FormSDK($("#forms-section"), {pages: [{"name": {label: "Name", "type": "name", "length": 15}}]}); | |
forms.Start().then(function(results) { | |
envelope.recipient1Name = results.name | |
Signing.routeTo("/Signing"); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment