title: Composite Template - signHere tabs all appear on the first document
body: <p>I have two templates defined, each has a <code>primary.account.holder</code> role and associated <code>signHere</code> tab placed in appropriate place in each. If I run each one individually, i.e., create an envelope and add my recipient, then the tabs are placed  as I'd expect.</p>
  <p>The first template's document is 11 pages long with a <code>signHere</code> tab on the 10th page. The second template's document is 4 pages long with a <code>signHere</code> tab on the last page.</p>
  <p>What I'd like to do is to create an envelope containing both of these templates, with a single signer. To do this I'm constructing a composite template with both of the templates above.</p>
  <p>I've run into the following issue: the documents are ordered correctly in the envelope, however the tabs all appear on the first document, and the second document doesn't have any tabs at all. (The first document gets a signHere tab on the 10th pages as it should, but it also has one on the 4th page, where it should be in the second document, the second doc has no tabs.)</p>
  <p>The envelope I'm submitting is below.</p>
  <pre><code>{
      &quot;compositeTemplates&quot;: [
          {
              &quot;document&quot;: {
                  &quot;documentBase64&quot;: &quot;...&quot;,
                  &quot;documentId&quot;: &quot;81&quot;,
                  &quot;fileExtension&quot;: &quot;pdf&quot;,
                  &quot;name&quot;: &quot;file-one.pdf&quot;,
                  &quot;order&quot;: &quot;1&quot;
              },
              &quot;inlineTemplates&quot;: [
                  {
                      &quot;recipients&quot;: {
                          &quot;signers&quot;: [
                              {
                                  &quot;email&quot;: &quot;docusign@example.com&quot;,
                                  &quot;name&quot;: &quot;Doe, Jane&quot;,
                                  &quot;recipientId&quot;: &quot;35916331&quot;,
                                  &quot;roleName&quot;: &quot;primary.account.holder&quot;,
                                  &quot;routingOrder&quot;: &quot;1&quot;
                              }
                          ]
                      },
                      &quot;sequence&quot;: &quot;2&quot;
                  }
              ],
              &quot;serverTemplates&quot;: [
                  {
                      &quot;sequence&quot;: &quot;1&quot;,
                      &quot;templateId&quot;: &quot;0058ab16-22e7-4877-ace1-2022bf8566b8&quot;
                  }
              ]
          },
          {
              &quot;document&quot;: {
                  &quot;documentBase64&quot;: &quot;...&quot;,
                  &quot;documentId&quot;: &quot;80&quot;,
                  &quot;fileExtension&quot;: &quot;pdf&quot;,
                  &quot;name&quot;: &quot;file-two.pdf&quot;,
                  &quot;order&quot;: &quot;2&quot;
              },
              &quot;inlineTemplates&quot;: [
                  {
                      &quot;recipients&quot;: {
                          &quot;signers&quot;: [
                              {
                                  &quot;email&quot;: &quot;docusign@example.com&quot;,
                                  &quot;name&quot;: &quot;Doe, Jane&quot;,
                                  &quot;recipientId&quot;: &quot;35916331&quot;,
                                  &quot;roleName&quot;: &quot;primary.account.holder&quot;,
                                  &quot;routingOrder&quot;: &quot;1&quot;
                              }
                          ]
                      },
                      &quot;sequence&quot;: &quot;2&quot;
                  }
              ],
              &quot;serverTemplates&quot;: [
                  {
                      &quot;sequence&quot;: &quot;1&quot;,
                      &quot;templateId&quot;: &quot;7b1282bf-051b-47b8-bd31-473c1423be4d&quot;
                  }
              ]
          }
      ],
      &quot;emailSubject&quot;: &quot;Please sign this document set.&quot;,
      &quot;status&quot;: &quot;sent&quot;
  }
  </code></pre>
  <p><s>I'm using the same signer and same <code>recipientId</code> for both inline templates, but I've also tried using a different <code>recipientId</code>s with no luck.</s> (edit - not relevant)</p>
  <p>It's not clear to me what I'm doing wrong. I've worked through some of the composite template documentation, but I haven't seen anything that would stick out as obviously wrong with my envelope. How can I get the tabs placed on each document rather than just the first?</p>
  <h2>UPDATE ONE</h2>
  <p><a href="https://stackoverflow.com/questions/65374614/docusign-api-signing-issues-with-sending-multiple-documents-in-the-same-envelop">This question</a> is similar to my issue. There are two parts to the solution that poster found: 1) inline templates need to be sequenced before server templates, and 2) &quot;you must have the Anchor Population Scope value in your account set to 'Document'.&quot;</p>
  <p>Item 1 by itself doesn't do anything. Item 2 is interesting - I haven't done it yet. I'm going to deploy my solution into a DocuSign account that already has at least one DocuSign app in production. <strong>Does this setting affect all DocuSign apps for a given account?</strong> If so, that's unfortunate.</p>
  <h2>UPDATE TWO</h2>
  <p>I'm not convinced that I'll be given the okay to turn on the 'Anchor Population Scope' flag for an entire account when that account has multiple docusign apps. So...</p>
  <p>I don't know if this is a solution, but it seems to work. I'm still using a composite template, but I'm not using a <code>serverTemplate</code>, and I'm including statically positioned tabs with the signers. The envelope looks like this:</p>
  <pre><code>{
      &quot;compositeTemplates&quot;: [
          {
              &quot;document&quot;: {
                  &quot;documentBase64&quot;: &quot;...&quot;,
                  &quot;documentId&quot;: &quot;1&quot;,
                  &quot;fileExtension&quot;: &quot;pdf&quot;,
                  &quot;name&quot;: &quot;file-one.pdf&quot;,
                  &quot;order&quot;: &quot;1&quot;,
                  &quot;pages&quot;: &quot;11&quot;
              },
              &quot;inlineTemplates&quot;: [
                  {
                      &quot;recipients&quot;: {
                          &quot;signers&quot;: [
                              {
                                  &quot;deliveryMethod&quot;: &quot;email&quot;,
                                  &quot;email&quot;: &quot;docusign@example.com&quot;
                                  &quot;roleName&quot;: &quot;primary.account.holder&quot;,
                                  &quot;tabs&quot;: {
                                      &quot;signHereTabs&quot;: [
                                          {
                                              &quot;documentId&quot;: &quot;1&quot;,
                                              &quot;pageNumber&quot;: &quot;11&quot;,
                                              &quot;xPosition&quot;: &quot;80&quot;,
                                              &quot;yPosition&quot;: &quot;534&quot;
                                          }
                                      ]
                                  }
                              }
                          ]
                      },
                      &quot;sequence&quot;: &quot;1&quot;
                  }
              ]
          },
          {
              &quot;document&quot;: {
                  &quot;documentBase64&quot;: &quot;...&quot;,
                  &quot;documentId&quot;: &quot;2&quot;,
                  &quot;fileExtension&quot;: &quot;pdf&quot;,
                  &quot;name&quot;: &quot;page-two.pdf&quot;,
                  &quot;order&quot;: &quot;2&quot;,
                  &quot;pages&quot;: &quot;4&quot;
              },
              &quot;inlineTemplates&quot;: [
                  {
                      &quot;recipients&quot;: {
                          &quot;signers&quot;: [
                              {
                                  &quot;deliveryMethod&quot;: &quot;email&quot;,
                                  &quot;email&quot;: &quot;docusign@example.com&quot;,
                                  &quot;tabs&quot;: {
                                      &quot;signHereTabs&quot;: [
                                          {
                                              &quot;documentId&quot;: &quot;2&quot;,
                                              &quot;pageNumber&quot;: &quot;4&quot;,
                                              &quot;xPosition&quot;: &quot;80&quot;,
                                              &quot;yPosition&quot;: &quot;160&quot;
                                          }
                                      ]
                                  }
                              }
                          ]
                      },
                      &quot;sequence&quot;: &quot;1&quot;
                  }
              ]
          }
      ],
      &quot;emailBlurb&quot;: &quot;Please sign this document set (smoke-test)&quot;,
      &quot;emailSubject&quot;: &quot;Please sign this document set (smoke-test)&quot;,
      &quot;status&quot;: &quot;sent&quot;
  }
  </code></pre>
  <p>This gives me the ability to compose envelopes with multiple forms many of which have the same signer, and not have those tabs show up on the first document in the envelope.</p>
  <p>I've got at least 10-15 forms many of which will need to be combined in ways that aren't conveniently captured in individual templates.</p>
  <p>So, I just need to associate a tabs collection for each signer within a form, then create a composite template using a document (generated in my case) and an inline template that includes tabs for each signer.</p>
  <p>The static positioning rather than anchor positioning gets around the need for the 'Anchor Position Scope' flag, at the cost of me needing to keep track of tab data myself rather than in a template (which is unfortunate.)</p>