Skip to content

Instantly share code, notes, and snippets.

@turlockmike
Last active November 17, 2017 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turlockmike/09bdeb6b92d5be5e6a4dab0eb4ce7d28 to your computer and use it in GitHub Desktop.
Save turlockmike/09bdeb6b92d5be5e6a4dab0eb4ce7d28 to your computer and use it in GitHub Desktop.
Forms SDK Ideas
//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