title: Docusign Customer Document Data
body: <p>With docusign is there a way to send custom data to the document.</p>
  
  <p>The use-case we have is that we are having customers sign an embedded form. We populate all of their data from our Database. </p>
  
  <p>So the main contract is the same but we need to send some values such as contract number, name, address, and price to the document we are having signed. What would be the best way to accomplish this?</p>
  
  <p>I have seen customer tags mentioned for this purpose but it seems like we can only do this in classic view which makes it seem like this will not be a supported feature in the new version. </p>
  
  <hr>
  
  <p>Update:</p>
  
  <p>I am still at a stand still on this issue.</p>
  
  <p>I have tried doing what was suggested and setting textCustomFields</p>
  
  <p>However, no matter what I pass in the label I set up does not show up.</p>
  
  <p>For example.</p>
  
  <p>I have the Name field on my Document and I also have a Text Field with the Data Label of: contractid</p>
  
  <p>Then I try passing the data in in my envelope as described in the documentation (I have yet to find an example of this anywhere)</p>
  
  <pre><code>string requestBody = 
                  "&lt;envelopeDefinition  xmlns=\"http://www.docusign.com/restapi\"&gt;" +
                  "&lt;status&gt;sent&lt;/status&gt;" + 
                  "&lt;emailSubject&gt;DocuSign API - Embedded Signing example&lt;/emailSubject&gt;" +
                  "&lt;templateId&gt;" + templateId + "&lt;/templateId&gt;" + 
                  "&lt;templateRoles&gt;" + 
                  "&lt;templateRole&gt;" + 
                  "&lt;email&gt;" + recipientEmail + "&lt;/email&gt;" +   
                  "&lt;name&gt;" + recipientName + "&lt;/name&gt;" +
                  "&lt;roleName&gt;" + templateRole + "&lt;/roleName&gt;" + 
                  "&lt;clientUserId&gt;1&lt;/clientUserId&gt;" +  // user-configurable
                  "&lt;/templateRole&gt;" + 
                  "&lt;/templateRoles&gt;" + 
                  "&lt;customFields&gt;" +
                  "&lt;textCustomFields&gt;" +
                  "&lt;fieldId&gt;contractid&lt;/fieldId&gt;" +
                  "&lt;name&gt;contractid&lt;/name&gt;" +
                  "&lt;required&gt;true&lt;/required&gt;" +
                  "&lt;show&gt;true&lt;/show&gt;" +
                  "&lt;value&gt;123&lt;/value&gt;" +
                  "&lt;/textCustomFields&gt;" +
                  "&lt;/customFields&gt;" +
                  "&lt;/envelopeDefinition&gt;";
  </code></pre>
  
  <p>The name field shows up correctly in the contract, but that is a custom field predefined by Docusign</p>
  
  <p>However, the contractid field just shows blank as no data has been passed into it.</p>
  
  <p>I even tried adding the information into the call to my view for when I show the embeded contract and that does not do anything either. </p>
  
  <p>I may be going about this the wrong way but so far I can find no good documentation on how to send custom data into the contract via the REST API.</p>
  
  <h2>Edit:</h2>
  
  <p>Here is a Screen Shot of my setup and I have attempted to add the Text Tabs into both the envelope and the document view request.</p>
  
  <p>I have to say I have worked with Multiple Rest API's including working with Twilio, Phaxio, Twitter and this Rest API implementation seems to be the most confusing I have every ran across as far as what does what</p>
  
  <p><a href="https://i.stack.imgur.com/ZWpgE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZWpgE.png" alt="enter image description here"></a></p>