I would like to prefill a few fields on a Template document used with embedded signing. I am using c#. I added data fields through the DocuSign template wizard and would like to know how I can prefill a data field from my embedded signing code in c-sharp? In my case, I added a Date Of Birth and Telephone Data field to the template and want to pass values in my XML when pulling the document up for signing. Here is what I have:
string requestBody = "<envelopeDefinition xmlns=\"http://www.docusign.com/restapi\">" +
"<accountId>" + accountId + "</accountId>" +
"<status>sent</status>" +
"<emailSubject>Electronic Release of Information</emailSubject>" +
"<emailBlurb>Please sign the release of information form</emailBlurb>" +
"<templateId>" + System.Configuration.ConfigurationManager.AppSettings.Get("DocusignTempId") + "</templateId>" +
"<templateRoles>" +
"<templateRole>" +
"<email>" + pUserEmail + "</email>" + // NOTE: Use different email address if username provided in non-email format!
"<name>" + pUserName + "</name>" + // username can be in email format or an actual ID string
"<tabs>" +
"<textTabs>" +
"<textTab>" +
"<tabLabel>DOB</tabLabel>" +
"<value>" + pDOB + "</value>" +
"</textTab>" +
"<textTab>" +
"<tabLabel>Telephone</tabLabel>" +
"<value>" + pTelephone + "</value>" +
"</textTab>" +
"</textTabs>" +
"</tabs>" +
"<roleName>Signer</roleName>" +
"<clientUserId>1</clientUserId>" +
"</templateRole>" +
"</templateRoles>" +
"</envelopeDefinition>";
On the demo site I created 2 Data Fields on my template: Data Field : Label: DOB, Data Field: Label: Telephone
Need to know what I am doing wrong. The Signing portion and everything else is working fine.