Skip to main content

I’m using the Signature API example.  When the user opens the email, rather than being able to sign, the document is getting opened for editing instead of for signing.

 

string envelopeTest = CreateEnvelopeFromTemplate.SendEnvelopeFromTemplate("scottftrick@gmail.com", "Scott Trick","strick@michels.us","Scott Trick", accessToken.access_token, acct.BaseUri + "/restapi", acct.AccountId, "9d0acb57-30c5-414f-a4fe-1d72e8bfca66");

 

        public static string SendEnvelopeFromTemplate(string signerEmail, string signerName, string ccEmail, string ccName, string accessToken, string basePath, string accountId, string templateId)
        {
            //ds-snippet-start:eSign9Step3
            var docuSignClient = new DocuSignClient(basePath);
            docuSignClient.Configuration.DefaultHeader.Add("Authorization", "Bearer " + accessToken);
           
            EnvelopesApi envelopesApi = new EnvelopesApi(docuSignClient);
            EnvelopeDefinition envelope = MakeEnvelope(signerEmail, signerName, ccEmail, ccName, templateId);
           
            EnvelopeSummary result = envelopesApi.CreateEnvelope(accountId, envelope);
            
           
            return result.EnvelopeId;
            //ds-snippet-end:eSign9Step3
        }

 

        public static EnvelopeDefinition MakeEnvelope(
            string signerEmail,
            string signerName,
            string ccEmail,
            string ccName,
            string templateId)
        {
            // Data for this method
            // signerEmail
            // signerName
            // ccEmail
            // ccName
            // templateId
            EnvelopeDefinition env = new EnvelopeDefinition();
            env.TemplateId = templateId;

            TemplateRole signer1 = new TemplateRole();
            signer1.Email = signerEmail;
            signer1.Name = signerName;
            signer1.RoleName = "signer";

            TemplateRole cc1 = new TemplateRole();
            cc1.Email = ccEmail;
            cc1.Name = ccName;
            cc1.RoleName = "cc";

            env.TemplateRoles = new List<TemplateRole> { signer1, cc1 };
            env.Status = "sent";
            return env;
            //ds-snippet-end:eSign9Step2
        }
    }

 

 

I've reviewed the code provided, but it looks fine. Did you assign the tabs to the recipient? If the tab is not assigned, the recipient will see the Freeform signing, which shows the menu with a list of fields that the recipient can use to add signatures, initials, and other information to the document. More details on the Freeform signing is here: https://support.docusign.com/s/document-item?language=en_US&rsc_301&bundleId=yca1573855023892&topicId=anf1573854985078.html&_LANG=enus

To prevent the Freeform signing, please assign the tab to the recipient. Since you are using the Template, you can simply test by assigning the tab to the recipient and then sending the envelope.